Recent content by akieft

  1. A

    Calculating Reading Score with a C Program

    not that we have been taught no...Our prof has never shown us a debugger to my knowledge neither has our TA
  2. A

    Calculating Reading Score with a C Program

    no the installation error is fixed. Basically the program runs, the output is ok1 and then quincy pops up an error saying that this program has quit unexpectedly and you have the option to close, debug, or send error to microsoft. If you click debug its just a bunch of numbers and I have no idea...
  3. A

    Calculating Reading Score with a C Program

    here is my code so far: #include <stdio.h> #include <string.h> int main (void) { int i, vowels, words, sentences; /* declaring variables */ /* assigning variables a value of zero */ double score; char text[1500]; FILE *input; input = fopen("beatles.txt", "r"); vowels=0...
  4. A

    Calculating Reading Score with a C Program

    any ideas as to why this program is not properly working? does the program have to be saved to a main hard-drive or is it ok that my program is saved to a flash drive? This program is driving me nuts! I can't figure it out!
  5. A

    Calculating Reading Score with a C Program

    i removed the semi colon but the program is still giving the same error and not getting any farther than where i started before
  6. A

    Calculating Reading Score with a C Program

    also so you know, the program gives a quincy error after it is run.
  7. A

    Calculating Reading Score with a C Program

    ok so i tried to re-write the code and include printf("ok\n"); statements and before the while loop it will print the ok the printf statement after the while loop does not work. here is the code thus far: #include <stdio.h> #include <string.h> int main (void) { int i, vowels, words...
  8. A

    Calculating Reading Score with a C Program

    so i tried the program again and it can be built, runs but with no output.
  9. A

    Calculating Reading Score with a C Program

    how would you compensate for the words at the end of the sentence?
  10. A

    Calculating Reading Score with a C Program

    also...if i do the for loops they way you are suggesting i would only need one for loop correct?
  11. A

    Calculating Reading Score with a C Program

    ok i will try the if statement. i thought it had to be in ranges but your way looks good too. For the loop you said put the "two for loops in here" after the while loop...are you referring to the loops that will count the vowels, words, and sentences etc...thanks again for all your help... I am...
  12. A

    Calculating Reading Score with a C Program

    any ideas how this will work. If fgets only gets one line, how would you read multiple lines?
  13. A

    Calculating Reading Score with a C Program

    #include <stdio.h> #include <string.h> int main (void) { int v, vowels, w, words, s, sentences; double score; char text[1500]; FILE *input; input = fopen("beatles.txt", "r"); fgets (text, sizeof(text), input); /* to count vowels*/ for(v=0; text[v] != '\0'; v++) {switch(text[v]) {case 'a'...
  14. A

    Calculating Reading Score with a C Program

    the .txt has more than one line. Would a fscanf function work better? This is not completely finished with formatting and everything worked out.
  15. A

    Calculating Reading Score with a C Program

    ok thanks...but i have no idea how to fix the compiler. Another girl tried to run the program and she simply said it doesn't work. Do you see anything wrong with the code?