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

 

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

Write a method that returns 'true' if it is a good day to go to the beach. The input parameter 'sunny' is true if it is a sunny day, false otherwise. The input parameter 'schoolDay' is true if it is a school day, false otherwise. The input parameter 'working' is true if you have to work that day, false otherwise. It is a good day to go to the beach if it is sunny and it is not a school day and you do not have to work. Look at the test data for examples.


practiceQuiz2023_09_05_APP1SLHL_beachDay(true, false, false) → true
practiceQuiz2023_09_05_APP1SLHL_beachDay(true, true, false) → false
practiceQuiz2023_09_05_APP1SLHL_beachDay(true, false, true) → false

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

public boolean practiceQuiz2023_09_05_APP1SLHL_beachDay(boolean sunny, boolean schoolDay, boolean working) { }

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