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

 

siochi@cnu.edu cpsc140practice > letterGradeOf
prev  |  next  |  chance

letterGradeOf() -- given an int between 0 and 100 inclusive, return the letter grade for that int. Grades are assigned as follows:

0 - 59: "F"
60 - 69: "D"
70 - 79: "C"
80 - 89: "B"
90 - 100: "A"

letterGradeOf(100) → "A"
letterGradeOf(80) → "B"
letterGradeOf(70) → "C"

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

public String letterGradeOf(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 Post-solution available

Copyright Nick Parlante 2017 - privacy