forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice > getToGraduate
prev  |  next  |  chance

You go to super-duper college, where you graduate only if you receive an 'A' or 'B' is your Chemistry and Programming classes. Create a method that returns "true" if the grade for Chemistry and Programming is 'A' or 'B'. This method should return a false is otherwise.

getToGraduate("A", "B") → true
getToGraduate("A", "C") → false
getToGraduate("B", "B") → true

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

public boolean getToGraduate( char chem, char prog) { }

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

Copyright Nick Parlante 2017 - privacy