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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started