id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

norm.krumpe@muohio.edu > getGrade
prev  |  next  |  chance

Given a numeric grade, convert it to the corresponding letter grade, where grades in the 90s or higher earn an A, 80s earn a B, 70s as C, 60s a D, and all other grades an F.


getGrade(99) → "A"
getGrade(100) → "A"
getGrade(75) → "C"

...Save, Compile, Run (ctrl-enter)

String getGrade(int grade) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy