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

 

letterGradeVS1


Given an int percent, return the letter grade for that percent according to the following rules: (90 to 100 - A) (80 to 89 - B) (70 to 79 - C) (60 to 69 - D) (0 to 59 - F) You may assume that percent is an integer from 0 to 100. You must use a switch statement. Look at the hint if you want to make this a much easier problem.


letterGradeVS1(90) → "A"
letterGradeVS1(89) → "B"
letterGradeVS1(73) → "C"

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

public String letterGradeVS1( int percent) { }

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