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

 

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

You get to go out on the weekend if you complete all your chores. Your chores are to take out the trash, do your homework, do the dishes, and walk the dog. The four parameters match these chores. If the parameter is 'true' it means that you did that chore. Return 'true' if you get to go out on the weekend, 'false' otherwise.


test2022_11_03_APP1SLHL_outOnWeekend(true, true, true, true) → true
test2022_11_03_APP1SLHL_outOnWeekend(false, false, false, false) → false
test2022_11_03_APP1SLHL_outOnWeekend(false, false, true, false) → false

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

public boolean test2022_11_03_APP1SLHL_outOnWeekend(boolean tookOutTrash, boolean didHomework, boolean didDishes, boolean walkedDog) { }

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

Copyright Nick Parlante 2017 - privacy