A Generous Curve
Assume that three Int
variables have been declared and initialized: yourScore
, extraCredit
, and
topGradeThreshold
.
Write a conditional expression that prints:
- "A+" if
yourScore
is greater thantopGradeThreshold
, otherwise - "A" if
yourScore
plusextraCredit
is greater thantopGradeThreshold
, otherwise - "A-"
(Our curve is not this generous, but students do do very well in this class. So will you!)