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

 

davereed@creighton.edu > passFail2
prev  |  next  |  chance

passFail2() -- You are to determine whether a student's average earns them a passing or failing grade. The method has two inputs, the student's average and the threshold for passing. If the average meets or exceeds the threshold, the method should return "pass". If it is less than the threshold, it should return "fail"


passFail2(90.0, 60) → "pass"
passFail2(58.0, 60) → "fail"
passFail2(60.1, 60) → "pass"

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

public String passFail2(double avg, int threshold) { }

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

Copyright Nick Parlante 2017 - privacy