Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Great work! Knightro wants you reward you with pizza, but when we go order he realizes the pizza calculator is gone. Can you rewrite it

image text in transcribed
Great work! Knightro wants you reward you with pizza, but when we go order he realizes the pizza calculator is gone. Can you rewrite it for him? This is how it works! - Asks the user how many pizzas they would like to order - Asks the user how many people they are feeding - Determines how many slices every can get evenly. - Prints out a message detailing how many pizza slices, people and slices per person. Few more details you may need to know. Each pizza has 8 slices. In addition, nobody can have more pizza than someone else. So if he orders one pizza and there are 10 of us, everyone looks at the pizza sad and gets 0 slices. You can be creative with the prompts asking the user and output messages

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

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions