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

 

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

public int isSchoolDayC(int day)

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


isSchoolDayC(1) → 0
isSchoolDayC(2) → 1
isSchoolDayC(3) → 1

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

public int isSchoolDayC(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