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

 

abraskin@mbusd.org > ch1and2Grade
prev  |  next  |  chance

On the chapter 1 and 2 CodingBat exam students were assigned three problems. Each problem represents the grade a student will earn if they solve that problem.


However, in order to earn the full letter grade they must also have solved the less difficult problems. If they have not solved the less difficult problems then the modifier "-" is added to their letter grade. If no problems are solved then their grade is an "F".

Given three boolean parameter inputs, a, b, and c, which are true if they solved the problem, return the correct letter grade with modifier if there is one.

ch1and2Grade(true, true, true) → "A"
ch1and2Grade(true, false, true) → "A-"
ch1and2Grade(true, false, false) → "A-"

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

public String ch1and2Grade(boolean a, boolean b, boolean c) { }

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