I just wanted to thank all of those who helped me out with my programs. Thanks to you guys and my strong determination, I got a B out of my computer programming course--and I'm not even a computer science major! My instructor said that I was an excellent student. You all didn't give me all of the answers, but you pushed me to learn on my own.
Thanks, again for all of your help!!!
User Profile
Collapse
-
It's been solved.
Thanks so much for all of your help you guys.... -
I am still having problems:-(
I am following you all's suggestions, and it's still coming out to be 125.Leave a comment:
-
This is what I did:
Code:void getscore(int&, int&, int&, int&, int&); int findLowest (int, int, int, int, int); void calcAverage (int, int, int, int, int, int, int); int main() { int average=0, score1=0, score2=0, score3=0, score4=0, score5=0, small=0; getscore (score1, score2, score3, score4, score5); calcAverage (average, score1, score2,
Leave a comment:
-
I hate to sound like a complete martian, but can you please explain to me what each line means???...Leave a comment:
-
Yes, it was, and I still ran crazy. Run my program, please and you will see what I mean....Leave a comment:
-
-
I tried that, and the same thing happened.
Actually, here are the instructions:
void calcAverage()-should calculate and display the average of the four highest scores. This function should be called just once by main and should be passed the five scores.
int findLowest()-should find and return the lowest of the five scores passed to it. It should be called by the calcAverage, who uses the function to determine...Leave a comment:
-
-
I tried that, and this is what happened:
Code:int main() { int average = 0, score1, score2, score3, score4, score5, small; getscore (score1, score2, score3, score4, score5); calcAverage (average, score1, score2, score3, score4, score5, small); getch(); return 0; } Enter first score: 100 Enter second score: 100 Enter third
Leave a comment:
-
Uh- oh, I think I ran into a problem:
When I entered the values 100, 100, 100, 100, 100, it gave me an average of 125. Why did that happen???...Leave a comment:
-
Alright, then, here is my program.
I've already ran the program, but I still want you to run int and see what you think of it.
Code:#include <iostream> #include <conio> using namespace std; //Function prototype void getscore(int&, int&, int&, int&, int&); int findLowest (int, int, int, int, int, int); void calcAverage (int, int, int,
Leave a comment:
-
Okay, this is what I came up with:
Code:void getscore(int&, int&, int&, int&, int&); int findLowest (int, int, int, int, int, int); [B]void calcAverage (int)[/B] int main() { int average, score1, score2, score3, score4, score5; getscore (score1, score2, score3, score4, score5); calcAverage (average) getch();
Leave a comment:
-
Ok, but now I am having problems with the void calcAverage() function. This function should calculate and display the average of the four highest test scores. It should also be called just once by main, and should be passed the five scores.
Now, here s my program so far:
Code:#include <iostream> #include <conio> using namespace std; //Function prototype void getscore(int&,
Leave a comment:
-
-
-
Oh, why Savage, please let me know. I am very interested. :-)...Leave a comment:
-
Oh. I though that at first all I could do was just declare LOW to be a large number and then do the if/else if statements to test it out. But I guess it didn't work because all of the numbers are smaller than 1000....Leave a comment:
-
You have one more what
Is there any way that I can use it doing the if/else if statements...Leave a comment:
-
Why are there four scores instead of five??? There should be five scoresLeave a comment:
No activity results to display
Show More
Leave a comment: