We order pizza for club night. Everybody gets the samenumber of slices, and whatever is left over goes in thefridge for whoever stays late. I never know how many toorder, so I just want to type in what I bought and howmany people showed up.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
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.
Pizzas: 3Slices per pizza: 8People: 7
Total slices: 24Each person gets: 3Left for the fridge: 3Your program can use fixed values or ask for them. Either is fine at this point in the set.
Your requirements list and your program file, named cc-pizza-split.