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

 

jebbert@volusia.k12.fl.us > test2021_02_11_APP1SLHL_driving
prev  |  next  |  chance

Write a method that helps determine if you will make it to school on time. To make it on time you must have a working clutch ('clutchWorks' is true). You must also take the correct offramp ('offRamp' is true). And, of course, you must have enough fuel ('fuelRemaining' is greater than 2).


test2021_02_11_APP1SLHL_driving(true, true, 1) → false
test2021_02_11_APP1SLHL_driving(true, true, 2) → false
test2021_02_11_APP1SLHL_driving(true, true, 3) → true

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

public boolean test2021_02_11_APP1SLHL_driving(boolean clutchWorks, boolean offRamp, int fuelRemaining) { }

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

Copyright Nick Parlante 2017 - privacy