Answered step by step
Verified Expert Solution
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 to a package and hot dog buns come 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:
Number of people attending the cookout
Number of hot dogs allocated for each person
The program should calculate and display the following information:
Minimum packages of hot dogs needed
Minimum packages of hot dog buns needed
Number of hot dogs left over
Number of hot dog buns left over
Partial packages of hot dogs and buns CANNOT be purchased. Remember the following:
comment box for your name, date and purpose of program
use other comments where appropriate
DO NOT hard code numbers in calculations, use constants
use clear prompts for your data input requests
Clearly label each output number or name
modulo operator might be useful
Result of a modulo operator divide is the remainder, ie remainder the answer would be
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started