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

 

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

public String isSchoolDayB(int day)

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


isSchoolDayB(1) → "No"
isSchoolDayB(2) → "Yes"
isSchoolDayB(3) → "Yes"

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

public String isSchoolDayB(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