about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy