Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

i need helo with this prigra Program description: Write a program that will ask the user how many people people are coming to a party

i need helo with this prigra
image text in transcribed
image text in transcribed
Program description: Write a program that will ask the user how many people people are coming to a party and how many pizzas will be ordered. You can assume that a pizza has 8 slices. The program will then state how many slices of pizza each person can eat and how many slices will be left over. Example: How many people are partying? 26 How many pizzas did you order? 7 -ar: 26 people and 7 pizzas, each pers will get 2 slices and you will have 4 sicices left over. 7 pizzas will provide 56 slices of pizza. Using integer division //,56 divided by 26 is 2. The remainder after each person eats 2 slices is 4 . Grading rubric: \begin{tabular}{|l|c|c|} \hline Requirement: & Points Worth: & Your Score: \\ \hline Promptsuserforinput-Storesasappropriatedatatype & 15 & \\ \hline Correct math for number of slices of pizza & 25 & \\ \hline Correct math for number of leftover slices & 25 & \\ \hline Outputs number of slices per person with label & 10 & \\ \hline Outputs number of leftover slices with label & 10 & \\ \hline Tram documentation & 15 & \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions