Search:

Type: Posts; User: green11420

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    1,879

    Yes, it took me a while to figure it out, thanks!

    Yes, it took me a while to figure it out, thanks!
  2. Replies
    12
    Views
    1,879

    No I got it now. I was basically making sure that...

    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!
  3. Replies
    12
    Views
    1,879

    This is how you calculate the class_average,...

    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;
  4. Replies
    12
    Views
    1,879

    I don't know what I did, but, I removed the...

    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...
  5. Replies
    12
    Views
    1,879

    I fixed the loop now, I put another "for"...

    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...
  6. Replies
    12
    Views
    1,879

    More trouble!!

    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....
  7. Replies
    35
    Views
    4,203

    LOL It's the answer to everything!

    LOL
    It's the answer to everything!
  8. Replies
    12
    Views
    1,879

    Question about reading from files

    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:


    ...
  9. Replies
    2
    Views
    1,152

    Need help with Craps program

    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,...
  10. Well it compiles fine now, but when I run it, it...

    Well it compiles fine now, but when I run it, it just keeps on looping it seems.
  11. ok I got it. Thanks.

    ok I got it. Thanks.
  12. class_average = total_class_average /...

    class_average = total_class_average / num_of_students;

    If i do remove it, it calls class_average and "undefined symbol...
  13. I've tried both of those and I get this message ...

    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()
  14. Need a little help with my Hw, involving reading from files

    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...
  15. Ok I got it working perfectly now. After I...

    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.
  16. one more problem here!

    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...
  17. wow, you guys are right. It works now. Thanks a...

    wow, you guys are right. It works now. Thanks a bunch!
  18. having trouble with some code for my class

    [edit] ok everything works perfectly thanks for all the help!
Results 1 to 18 of 18