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

 

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

boolean gotAdvisory(int day, boolean startOfTerm): If it's the start of the new semester, Advisory is Monday through Friday. After that, Advisory is Wednesday through Friday. The day of the week is encoded as 1=Sun, 2=Mon, 3=Tue, 4=Wed, 5=Thurs, 6=Fri, 7=Sat. Return true if you have Advisory that day.


gotAdvisory(1, true) → false
gotAdvisory(1, false) → false
gotAdvisory(2, true) → true

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

boolean gotAdvisory(int day, boolean startOfTerm) { }

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