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

 

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

Write a method that returns 'true' if you are going to have a good weekend; 'false' if you are NOT going to have a good weekend. A good weekend is one with no homework, and you get to take a nap. That is the only way to have a good weekend. You will notice that the test data THAT YOU CAN SEE is all identical. This is to prevent you from just hard-coding to match the test data.


aaa1funWeekend(false, false) → false
aaa1funWeekend(false, false) → false
aaa1funWeekend(false, false) → false

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

public boolean aaa1funWeekend(boolean homework, boolean nap) { }

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