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

 

srp4379@lausd.net > VoiceMail07
prev  |  next  |  chance

VoiceMail07. You're expecting a late night phone call from Hong Kong between 2-4am. You sleep from 8pm-2am, wake up for 2 hours, then go back to sleep from 4am-6am. Your phone is set on Voicemail during the hours you're sleeping. The "hour" parameter is the current hour time in the range 0-23. Add 12 to convert any PM hour to the 24-hour clock. Return true if your phone will go to Voicemail.


VoiceMail07(0) → true
VoiceMail07(1) → true
VoiceMail07(2) → true

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

boolean VoiceMail07(int hour) { }

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

Copyright Nick Parlante 2017 - privacy