Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hot Dog Calculator Hot dogs come 1 0 to a package and hot dog buns come 8 to a package. Write a Flowgorithm program that

Hot Dog Calculator
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 dogsand 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 personT
he 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:
You must use the if statement in your solutioncomment 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, i.e. remainder =10%4the 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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

What is your favorite family vacation?

Answered: 1 week ago