Your Instructor asks you to write a program that computes the letter grade for a
student taking their course. The professor assigns up to 10 assignments and
drops the lowest test score.
Write functions that do the following:
A function called getTestScores that has two parameters: an array of
doubles containing the test scores and an integer that says how many
tests were assigned. This function needs to a have a void return type
and should loop through the array asking the user to enter each test score.
A function called findLowestIndex that has two parameters: an array of
doubles containing the test scores and an integer that says how many
tests were assigned. This function should return an integer containing the
index of the lowest test score in the array.
A function called computeAverage that has two parameters: an array of
doubles containing the test scores and an integer that says how many tests were
assigned. This function should loop through the array to compute an average
and return this double to the calling function.
Get Free Quote!
347 Experts Online