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

 

byngcompsci@gmail.com > gradeBot
prev  |  next  |  chance

gradeBot() -- given a percent score, this method returns a String that represents the corresponding letter grade to this score.

100+:   A+
99-86: A
85-73:  B
67-72:  C+
66-60:  C
59-50:  C-
49-0:   F
<0:     INVALID

gradeBot(137.0) → "A+"
gradeBot(99.0) → "A"
gradeBot(85.0) → "B"

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

public String gradeBot(double score) { }

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: 15

Copyright Nick Parlante 2017 - privacy