Study hall is only for kids who are actually caught up. Askif their permission slip is signed and how many assignmentsthey're missing, and tell them whether they can stay.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
&&, not a chain and not an override.string. The missing-assignment count is a number.|| or !, re-read the brief — they are not needed.else covers all of them the same way.Only one-star challenges have this section. If you already know how to begin, skip it — and when you move up to two stars, working out the order yourself is part of the job.
string and the missing-assignment count as an int.if that joins both conditions with &&.else for every other case.Permission slip signed (yes/no)? yesMissing assignments? 0
Cleared for study hall.Verified in a real run. Change either input alone — slip to “no”, or missing assignments to anything but 0 — and the answer has to flip.
Your requirements list and your program file, named cc-study-hall-pass.