Explore BrainMass
Share

C++ Program to assign grades

This content was STOLEN from BrainMass.com - View the original, and get the solution, here!

At Enlightened State University, students receive grades of Honors, Pass, or Fail rather than the usual letter grade. The function grade returns H, P, F depending on whether avg merits a grade of Honors (at least 92), Pass (at least 65, but less than 92), or Fail (less than 65). Write C++ statements that define the function grade whose declaration is:
chr grade (double avg);

© BrainMass Inc. brainmass.com September 24, 2018, 9:27 am ad1c9bdddf - https://brainmass.com/computer-science/compiler-theory/c-plus-plus-program-assign-grades-170240

Solution Summary

This solution presents a C++ program in order to assign grades depending on the points scored, to students using a function.

$2.19