Recent content by akieft
-
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- akieft
- Post #32
- Forum: Programming and Computer Science
-
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...- akieft
- Post #30
- Forum: Programming and Computer Science
-
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...- akieft
- Post #28
- Forum: Programming and Computer Science
-
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!- akieft
- Post #27
- Forum: Programming and Computer Science
-
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- akieft
- Post #25
- Forum: Programming and Computer Science
-
A
Calculating Reading Score with a C Program
also so you know, the program gives a quincy error after it is run.- akieft
- Post #22
- Forum: Programming and Computer Science
-
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...- akieft
- Post #21
- Forum: Programming and Computer Science
-
A
Calculating Reading Score with a C Program
so i tried the program again and it can be built, runs but with no output.- akieft
- Post #19
- Forum: Programming and Computer Science
-
A
Calculating Reading Score with a C Program
how would you compensate for the words at the end of the sentence?- akieft
- Post #17
- Forum: Programming and Computer Science
-
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?- akieft
- Post #15
- Forum: Programming and Computer Science
-
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...- akieft
- Post #14
- Forum: Programming and Computer Science
-
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?- akieft
- Post #12
- Forum: Programming and Computer Science
-
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'...- akieft
- Post #10
- Forum: Programming and Computer Science
-
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.- akieft
- Post #9
- Forum: Programming and Computer Science
-
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?- akieft
- Post #5
- Forum: Programming and Computer Science