Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Design the following functions in the program:
calcAverage- this function should accept five test scores as arguments and return the average of the scores.
determineGrade—This function should accept a test score as an argument and return a letter grade for the score (as a String), based on the following grading scale:
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F
This is what I have so far and I need help with the rest..
I recommend keeping everything as either double or float, one or the other...that's good conventional programming according to what I've been told.
You already have all of your scores declared as doubles in main(), and probably it is more common to use doubles anyway, unless you start using the long decimals, more for the Engineering, Scientific, and Space etc...that's according to my Professor.
Secondly you are also using only a fixed precision of 1 decimal place. so it is a rounded number to that which is like 99.18 == 99.0, or 50.007 == 50.0, etc...
If you are using fixed of greater than 2 decimal places that is probably the most common form for using floats...Just fyi... It might give you a bit higher grade all