Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a progarn that will calculate the comect mumber of packages for froten hambergers. The proirain will need to ask the uner how many people

image text in transcribed
image text in transcribed
Create a progarn that will calculate the comect mumber of packages for froten hambergers. The proirain will need to ask the uner how many people are coming to the party and will print out the number of hamburifers and the numbtier of packeges they Will need to buy. from past experience you know that most party muests will conwime between 1 to 2 hamburgers each. Therefore, in orker ta make sare you have enogagh, mukiply the nuanter of gueits by 1.5 to determine the total number of hambureser. to detennine the number of packages, realize that hamburgers coine in packages of 10 . Since we are etienatinis the number of hambungers consumed at the party to be about 1.5 jer person, if the mumber of henburgers ieft over is greater than 5 , add another package of hamburgers. Otherwite dorit add an extra package. For instance, if there are 30 people coming to the party that equates to 45 hamburkers. That would mean we would need to to purchaie 5 packages of hambergen. (HINT) When solving this don' forget sbout the modulun operator) if there are 29 people coming to the party that equates to 43.5. hamburgers and only 4 packages. Don't worry that we may be short 3.5 tomburgers, it was just an estimate. Make sure your input satements and output statements have prompts and descriptive cext so that they can identify to the user What the iriputs and outputs are representing: Addibonally include at the top of your code the Decompositice for this problem in comments. For example- * Decormaostion * Step 11 a step 2: a steo 3: I Inecuts: * Input 1 A Input 2 A. Input N * Outputs: 1. Output: A Culput? * Output N Your erade will be based on the following rubric

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

3. Evaluate a Web-based training site.

Answered: 1 week ago