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

 

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

Write a method that returns "Have a great summer!" if it is almost summer and it is the last day of school and there are 6 or fewer hours remaining (based on the parameters being passed in). Otherwise return "I can't wait"


lastDayQuiz2014N1(true, true, 5) → "Have a great summer!"
lastDayQuiz2014N1(true, true, 2) → "Have a great summer!"
lastDayQuiz2014N1(true, true, 15) → "I can't wait"

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

public String lastDayQuiz2014N1(boolean almostSummer, boolean lastDay, int hours) { }

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