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

 

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

passFail1() -- You are to determine whether a student's average earns them a passing or failing grade. If the average is at least 60, the method should return "pass". If it is less than 60, it should return "fail"


passFail1(90.0) → "pass"
passFail1(58.0) → "fail"
passFail1(72) → "pass"

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

public String passFail1(double avg) { }

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

Copyright Nick Parlante 2017 - privacy