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

 

srp4379@lausd.net 1-logicbasics > schoolDay
prev  |  next  |  chance

public boolean schoolDay(int day)

Given a number in the range 0-6 (NOT 1-7 !!) that represents a day of the week (0=Sunday, 1=Monday, etc.), return true if the day is M-F, false if it's the weekend.


schoolDay(0) → false
schoolDay(1) → true
schoolDay(2) → true

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

public boolean schoolDay(int 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: 1

Copyright Nick Parlante 2017 - privacy