calculateGrade
The function printGrade in this example {see attachment} is written as a void function to compute and output the course grade. The course score is passed as a parameter to the function printGrade. Rewrite the function printGrade as a value-returning function so that it computes and returns the course grade. (The course grade must be output in the function main.) Also, change the name of the function to calculateGrade.
© BrainMass Inc. brainmass.com February 24, 2021, 2:37 pm ad1c9bdddfhttps://brainmass.com/computer-science/algorithms/calculategrade-33122
Solution Summary
Rewrite the function printGrade as a value-returning function so that it computes and returns the course grade.
$2.19