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

 

norm.krumpe@muohio.edu ifproblems > alarmTime
prev  |  next  |  chance

Marvin sets his alarm for 5am on every day except for Saturday and Sunday. On Saturday and Sunday, he sets his alarm for 6am. Given the day of the week as a String, return the time that Marvin should set his alarm for.


alarmTime("Monday") → "5am"
alarmTime("Sunday") → "6am"
alarmTime("Tuesday") → "5am"

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

String alarmTime(String day) { }

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

Copyright Nick Parlante 2017 - privacy