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