Assume that three Int
variables have been declared and initialized: yourScore
, extraCredit
, and
topGradeThreshold
.
Write a conditional expression that prints:
yourScore
is greater than topGradeThreshold
, otherwiseyourScore
plus extraCredit
is greater than topGradeThreshold
, otherwise(Our curve is not this generous, but students do do very well in this class. So will you!)
Stuck? You may find these lessons helpful: