Your get_letter grade function has a space in its name, and the implementation doesn't return anything.
Rashakil Fol
Super Senior Demiposter
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
>int get_letter grade(int);
Can't have spaces in your function. And since you're calculating a letter grade, don't you think you had better return a letter instead of a number?
>int numeric_grade,
>letter_grade;
Likewise, you should make 'letter_grade' a char value, not an integer. It just makes sense.
>cout endl;
There's something special that needs to go between these...
>((10- (grade/10)) + 64)
>return;
Put the return keywordbefore the expression.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
>double grade;
>grade= ((10- (grade/10)) + 64);
If you never use a parameter of the function to calculate the grade, what makes you think it'll be calculated correctly?
>cout endl;
Again, I remind you: there is something that needs to go between "cout" and "endl".
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
>I did the changes but still having issues.
It would be nice if you told us what those issues were. :icon_rolleyes:
>cout endl;
That won't compile. You probably meant cout<<endl; .
>grade= ((10- (grade/10)) + 64);
grade doesn't have a predictable value but you use it in an expression...
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401