Question: Help! Write a program to prompt the user for the number of people at a party and the number of pizza slices each person is
Help!
Write a program to prompt the user for the number of people at a party and the number of pizza slices each person is expected to eat and output the number of pizzas that should be ordered. It is not possible to order a partial pizza. It is ok to have leftover pizza, but it is not ok to not have enough for everyone to eat. You can assume that the number of slices each person will eat will be a positive number greater than zero. Assume that a pizza has eight slices.
output should be;
How many people will there be? 4
How many slices will each person eat? 3
You should order 2 pizzas.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
