Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 55,389 points

jjjones42003

Favorite Answers57%
Answers610
  • Does anyone agree that the President used "God" too much in his inaugurational speech?

    As an athiest, I am often offended by the amount of Gawd talk by politicians. For a nation that prides itself on having a secular government, there is an awful lot of religious rhetoric and practices embedded in the government. What do you think?

    20 AnswersReligion & Spirituality8 years ago
  • Linux bash shell question?

    How can I use the $ character without linux interpreting it as a variable? For example, if I have

    echo "Your account balance is $100.00" > newfile

    When I open newfile, it just says

    Your account balance is

    I think it's because linux thinks $ is prompting for a variable name. Is there any way around this?

    2 AnswersProgramming & Design1 decade ago
  • Where can I get Fortran software?

    I need to start learning Fortran and I know NOTHING about it. Does anyone know any websites where I can get a Fortran compiler and an editor that recognizes the language? I know I can just google it but there are so many web sites and I don't know which ones to trust. Keep in mind that I don't want anything fancy, just a very simple editor that I can write basic codes in.

    Also, please be gentle with technical terminology. I am a mathematician, not a professional programmer. Thanks!

    2 AnswersSoftware1 decade ago
  • How does an ex-convict go about reforming their life?

    I have a brother who got into drugs at an early age and picked up a felony possession charge 4 years ago. In the past 2 years, he has really cleaned himself up and has been very motivated to get his life back on track. The problem is, nobody wants to hire a felon so he has been through a never-ending cycle of applying for jobs and being rejected once his background check comes through. I have tried to do all I can but I just don't know how else I can help him. It seems that the real punishment is not going to jail but being doomed to a life where nobody trusts you and nobody is willing to give you a chance to prove yourself.

    If anyone has any experience with this sort of thing, I would love to hear some advice on what he can do to get a job and get his life back on track.

    2 AnswersLaw & Ethics1 decade ago
  • Interchanging limits and integrals?

    What are necessary conditions for interchanging an integral and a limit when integrating a sequence of functions? In other words, when does the limit of an integral equal the integral of the limit? Please be specific and not too technical, I do not know much analysis.

    1 AnswerMathematics1 decade ago
  • Problem with laptop overheating?

    I have a Compaq Presario laptop that is about 1.5 years old and lately it has been running very hot and shuts down sometimes. I have tried numerous things to fix this:

    I installed Windows 7 (not that I thought this would make a difference but its certainly better than Vista)

    I cleaned out the fan with compressed air but I can't tell if it did anything because the fan is impossible to access unless I completely take the computer apart.

    I also bought an expensive fan-powered cooling pad which helps a little but not much.

    Does anyone have any advice on what may be causing my laptop to overheat or how to fix it?

    5 AnswersLaptops & Notebooks1 decade ago
  • I'm trying to open a file in C but I keep getting a null pointer?

    I'm using the following code which seems to be correct but for some reason, I keep getting a run-time error due to a null pointer.

    #include <stdio.h>

    int main()

    {

    FILE * file1 = fopen("test.txt","r");

    if(file1 == NULL)

    printf("File does not exist.\n");

    else

    printf("File opened successfully.\n");

    return 0;

    }

    Everytime I run this program, I am getting the "File does not exist." statement. The file I am trying to open, "test.txt" is located in the same folder as my program. Does anyone have any suggestions on why this is happening? I have tried renaming the file and moving it to different locations but nothing seems to work!

    2 AnswersProgramming & Design1 decade ago
  • Using standard C, how do I read integers from a file?

    OK, I have already asked this question twice but recieved no satisfactory answers. One person provided C++ code but that's no good to me. Here is my problem:

    I have a .txt file that contains one integer per line (these integers can have multiple digits). I need to write a C program that scans them from the file and stores them in an array. This doesn't seem like it should be that hard, I could write the code in Java using 3 or 4 lines but I have no idea on how to do it in C. Please provide specific instructions and/or code. Thank you!

    2 AnswersProgramming & Design1 decade ago
  • I seriously need help with a C program!?

    I know this should not be that difficult, but I am going crazy trying to figure it out. Here is what I need to do:

    I have a .txt file that contains a list of integers (one integer per line). I need to read these integers from the file and put them into an array. How can I do this? Please provide detailed instructions and/or the code. I can't seem to get a real explanation of how to use fopen, fgets or EOF. Please help!

    2 AnswersProgramming & Design1 decade ago
  • How to I read from a text file in C?

    I have a text file that is a list of integers (one integer per line) and I would like to write a C program to read in each integer and put them into an array. How do I do this?

    3 AnswersProgramming & Design1 decade ago
  • How can I declare an array in C with a variable?

    How come this will declare an array

    int a[10];

    but this gives me a compile error?

    int n = 10;

    int a[n];

    Is there any way to get around this? In particular, I want to make a structure that contains two fields:

    int size;

    int a[size];

    Can this be done?

    4 AnswersProgramming & Design1 decade ago
  • Implementing a Linked List in C?

    I'm trying to implement a linked list in C but for some reason, my "add" function is not working. It's supposed to add a node to the end of the list. If I manually change the pointers it works, so I don't know what's wrong. I will show the code for the both situations.

    The linked list structure looks like this:

    struct list{

    int key;

    struct list *next;

    };

    This code adds "b" to the list:

    struct list a = {1,NULL};

    struct list b = {4,NULL};

    struct list *new_list = &a;

    a.next = &b;

    This code should do the exact same thing except I'm getting a run-time error.

    struct list a = {1,NULL};

    struct list b = {4,NULL};

    struct list *new_list = &a;

    add(new_list,b);

    void add(struct list *head, struct list new_node)

    {

    struct list *ptr = head;

    while(ptr != NULL)

    {

    ptr = (*ptr).next;

    }

    (*ptr).next = &new_node;

    }

    It's the last line in the add function that is causing the error and I don't see why. Does anyone know of a way to fix this or of a different way to write this function?

    2 AnswersProgramming & Design1 decade ago
  • How do I compile a C file through the windows command line? ?

    Every time I try to "Build Solution" I get an error that says "Error spawning cmd.exe". Any idea how to fix this? Can i just compile and run C files through the Windows command line?

    4 AnswersProgramming & Design1 decade ago
  • TextPad: coloring the text?

    I have been using textPad for quite some time to compile and run java programs but something strange happened the other day. For some reason, all text is showing up as black, including key words and special charachters. The programs still compile and run fine but I can't figure out how to get the colors right. I looked under preferences and everything is set to the standard defaults. I have even tried uninstalling it and reinstalling it but that still doesn't work. In fact, all of my previous settings and macros still work on the "new" version. If anyone knows what could be causing this or how I can get it back to normal, I would greatly appreciate some advice.

    1 AnswerProgramming & Design1 decade ago
  • Visual C++ complie question?

    I just downloaded Visual C++ and am trying to compile and run a c source file and the sample "Hello World" program is running instead. How do I get rid of this and run my program? I am going to Build -> Bulid Solution -> then to Debug -> Start Debugging. I also tried starting it without debugging and that didn't work either. I think what I am doing is correct but that stupid Hello World program keeps running. Any help would be greatly appreciated.

    2 AnswersProgramming & Design1 decade ago
  • Microsoft Access security question?

    Is there any way to make an Access database accessible to only one person for editing but to anyone for viewing?

    2 AnswersSoftware1 decade ago
  • Microsoft Access question?

    Is there some kind of equivalent to Excel's SUMIF function in Access? I want a text box in a form to show the sum of the values in a field but I need to limit which values it is summing. I have not yet been able to find a way to do this.

    2 AnswersSoftware1 decade ago
  • A combinatorial proof?

    Provide a combinatorial proof that the sum from k=1 to n of k*(C(n,k)^2) is equal to n*C(2n-1,n-1). I know I have to show that both sides provide different but valid ways of counting the same thing but I have no idea of what the left side represents as far as counting. Please help!

    3 AnswersMathematics1 decade ago
  • Counting problem...?

    How many ways are there to distribute 40 magazine into 4 identical boxes so that each box has exactly 10 magazines. The magazines are conidered to be distinguishable. Please explain the solution.

    4 AnswersMathematics1 decade ago
  • Counting problem...?

    How many ways are there to form 6-letter strings with

    a) exactly one vowel

    b) at least one vowel

    c) at most one vowel

    I already know the answers but I don't know how they came up with them. Please explain how to do this.

    2 AnswersMathematics1 decade ago