Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Program Can you help me make this program with input validations (for example cannot enter -1 for number of people or over 7 billion)

Python Program

image text in transcribed

Can you help me make this program with input validations (for example cannot enter -1 for number of people or over 7 billion) and making sure no negatives are being inputted for the # of burgers/hotdogs/buns

As the owner of a new catering company, you have decided to offer cookout services as your first offering! In doing so, you will need to write a Python program providing cost estimates for your potential customers. Your program should ask a customer for- Name Number of people attending the cookout Available food item(s) - hot dogs and/or burgers Estimate the number of hot dogs or burgers each person might eat Duration of the cookout (how long will the party last?) Other questions that you like to ask) Determine - Numbers of packages of hot dogs, burgers and buns that you will need to purchase, with minimum amount of leftovers Total cost (out of pocket) to host this cookout Asking price (that you will charge) for the cookout 0 Total cost + profit margin Assumptions Hot dogs come in packages of 8 | $4 per package Burgers come in packages of 6 | $6 per package Buns come in packages of 12 | $3 per package We can use the same bun for either a hot dog or burger You charge $25 per hour for the cookout Your profit margin is 15% (add this cost to your asking price) Output Minimum numbers of packages of hot dogs and burgers required Minimum number of packages of buns required Numbers of leftovers (hot dogs, burgers and buns) Total cost of cookout (your out of pocket cost) Asking price to bill your customer for the cookout Additional information where applicable Requirements Your asking price must be as competitive as possible - minimum amout of leftovers

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions