about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 210
Copyright Nick Parlante 2017 - privacy