Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hot dogs come 1 0 to a package and hot dog buns come 8 to a package. Write a Flowgorithm program that calculates the number

Hot dogs come 10 to a package and hot dog buns come 8 to a package. Write a Flowgorithm program that calculates the number of packages of hot dogs and buns needed for a cookout with minimum leftovers.
The program should ask for the following information:
1. Number of people attending the cookout
2. Number of hot dogs allocated for each person
The program should calculate and display the following information:
1.Minimum packages of hot dogs needed
2. Minimum packages of hot dog buns needed
3.Number of hot dogs left over
4.Number of hot dog buns left over
Partial packages of hot dogs and buns CANNOT be purchased. Remember the following:
1.comment box for your name, date and purpose of program
2.use other comments where appropriate
3.DO NOT hard code numbers in calculations, use constants
4.use clear prompts for your data input requests
5. Clearly label each output number or name
6.modulo operator might be useful
Result of a modulo operator divide is the remainder, i.e. remainder =10%4 the answer would be 2

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions