Nadroj,
Thank you, it's finally working!
I've really appreciated all the time you've taken to help me and especially how patient you've been. I know I've been asking a lot of questions and I...
Type: Posts; User: pavlora
Nadroj,
Thank you, it's finally working!
I've really appreciated all the time you've taken to help me and especially how patient you've been. I know I've been asking a lot of questions and I...
Here is getScore:
void getScore(float &tscore)
{
float score;
cout << "Please enter a test score. ";
cin >> score;
Okay, after changing the doubles to floats, the program no longer crashes when outputting the scores, but the numbers are still a problem.
Here is a sample run:
Please enter a test score. 4...
Yes, I changed lowest to int in calcAverage.
Re: the thing that was suggested to fix the e notation (fixed manipulator) - the program crashes before outputting the numbers when I include this.
Here's main:
int main()
{
double score1,
score2,
score3,
score4,
score5;
Nadroj,
I've made the corrections you've pointed out. Now findLowest consistently returns 5. Also, the program compiles, but crashes when it's going to output the test scores. When I remove fixed...
I understand that but we haven't gotten that far in my course.
Nadroj,
Okay, I can totally understand that. Thanks. I've done what you suggested, but somewhere along the way I made a mistake and I have two problems: 1.) findLowest always returns 2, and 2.)...
Nadroj,
Thanks for taking the time to respond with such an in-depth post. Sorry about posting erroneous code - it had some things (the grd1) in it I was using to diagnose the problem with the e...
King Mir, thanks for responding. I made the edit you suggested, but when I run the program it displays "The average of the four highest test scores is " and crashes. Any ideas?
Hey, everyone. I'm having a problem with a program and I'm hoping someone could help me out. The instructions are as follows:
Write a program that calculates the average of a group of test scores,...