Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions