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