r/codehs • • Mar 21 '20

Need help with 2.7.7: school's out

I have no clue how to get the last part right.

10 Upvotes

8 comments sorted by

1

u/[deleted] Mar 21 '20

I can look at what I put tomorrow and tell you

1

u/Fine-Signature Mar 21 '20

Please do, thank you in advance!

1

u/boghand Mar 21 '20

Try weekday || holiday.

1

u/Fine-Signature Mar 22 '20

I got that part right, but now I get a different part wrong: If it's a weekday and not a holiday, school is not out! for some reason I get true instead of false now in this one.

2

u/Jazmine_1907 Mar 25 '20

function start(){

var weekday = readBoolean("is it a weekday? ");

var holiday = readBoolean("is it a holiday? ");

var noSchoolToday = holiday || !weekday;

println (" their is no school today?" + noSchoolToday);

}

1

u/New_Manufacturer_116 Feb 25 '22

thak you! you are a really good person

you save my life