Yes, it took me a while to figure it out, thanks!
Type: Posts; User: green11420
Yes, it took me a while to figure it out, thanks!
No I got it now. I was basically making sure that was how you find the sum of the test scores.
Once again this forum has helped me figure out my hw! The program is working now! Thanks!
This is how you calculate the class_average, right?
for(index = 0; index < 10; index = index + 1)
{
class_average += test_score[index];
class_average /= 10;
I don't know what I did, but, I removed the additional loop to figure it out, and it worked fine.
I saved the program and it worked fine after removing the additional loop.
That's weird.
It's...
I fixed the loop now, I put another "for" statement before the if-else. The problem now is just that it is giving "Outstanding" to everyone!
Richard Miller's grade: 55 OUTSTANDING.
Frank...
Yeah I believe so. Except I just realized there is only 10 students in the file, so I've changed that. Thanks.
I've gotten it to compile now but when I run it, it's caught in an endless loop....
LOL
It's the answer to everything!
we are learning about reading from text files in my class. I have a list of student names along with their grade on a history test. I need to find the class average.
Here is my code so far:
...
I am doing a Craps program in my class. I think this is a very common program for beginners but it seems to be different everywhere I see it. All I need it to do is the user inputs the first total,...
Well it compiles fine now, but when I run it, it just keeps on looping it seems.
ok I got it. Thanks.
class_average = total_class_average / num_of_students;
If i do remove it, it calls class_average and "undefined symbol...
I've tried both of those and I get this message
Warning W8004 Grade_book2008.cpp 18: 'class_average' is assigned a value that is never used in function main()
I wrote my code last night. It is a program that reads from the following text file:
"Grades_2008.txt"
Smith Mary J. 79 94 81
Johnson Paul L. 88 76 83
Kerry John W. 92 86 89
Mitchell Susan...
Ok I got it working perfectly now. After I prompted the user for the height I set the "initial_height" equal to "height" and that seemed to fix everything. Thanks for your help.
Here is my code again, I fixed the first problem but now when I echo the initial height it shows a number like 0.94 which is what the update statement is producing. How do I set it so that it echos...
wow, you guys are right. It works now. Thanks a bunch!
[edit] ok everything works perfectly thanks for all the help!