In python coding please with proper indentation, comments, good variable initializations, questions asking for the parameters of the code and output display with explanation.:
Assume that hot dogs come in packages of 20, and hot dog buns come in packages of 8. Design a modular program that calculates the number of packages of hot dogs and the number of packages of hot dog buns needed for a cookout, with the minimum amount of leftovers. The program should ask the user for the number of people attending the cookout, and the number of hot dogs each person will be given. The program should display the following:
CODE:

OUTPUT:

Raw_Code:
# The Ceil function is used to Convert the floating number into highest possible integer ex: 10.3->>11
from math import ceil #Importing math module to use ceil function
def hot_dogs(num_of_people,num_of_hotdogs): #Function to Calculate the output for hot_dogs
total_hot_dogs=num_of_people*num_of_hotdogs #Calculating Total Number of Hot Dogs Required
packs_required=ceil(total_hot_dogs/20) #Calculating Total Number of Packs to be Opened
hot_dogs_leftover=(packs_required*20)-total_hot_dogs #Calculating Total Number of leftover
return packs_required,hot_dogs_leftover #Returning the packs required and hot dogs left
def buns(num_of_people,num_of_hotdogs):
#Function
to Calculate the output for Buns
total_hot_dogs=num_of_people*num_of_hotdogs #Calculating Total Number of Hot Dogs Required
packs_required=ceil(total_hot_dogs/8) #Calculating total Number of packs of buns to be Opened
buns_leftover=(packs_required*8)-total_hot_dogs #Calculating Total Number of Buns leftover
return packs_required,buns_leftover #Returning the packs required and buns leftover
number_of_people=int(input("Enter the Number of people attending
the Cookout:")) #taking Input
number_of_hotdogs=int(input("Enter the Number of Hot dogs each
person will be given:"))
hotdog_packs_req,hot_dogs_leftover=hot_dogs(number_of_people,number_of_hotdogs)
#Calling Functions
buns_packs_req,buns_leftover=buns(number_of_people,number_of_hotdogs)
print("The Minimum Number of packages of hot dogs
required:",hotdog_packs_req)
#Printing The Required Output
print("The number of hot dogs that will be left
over:",hot_dogs_leftover)
print("The Minimum Number of packages of buns
required:",buns_packs_req)
print("The number of buns that will be left
over:",buns_leftover)
****Comment me in the comment box for any Qureies***
In python coding please with proper indentation, comments, good variable initializations, questions asking for the parameters...
The question in the textbook is as follows: Hot Dog Cookout Calculator Assume that hot dogs come in packages of 10, and hot dog buns come in packages of 8. Design a modular program that calculates the number of packages of hot dogs and the number of packages of hot dog buns needed for a cookout, with the minimum amount of leftovers. The program should ask the user for the number of people attending the cookout, and the number of...
Hello: Need help with this program. In JavaScript please // Assume hot dogs come in packages of 10, and hot dog buns come in packages of 8. // Write a program that calculates the number of packages of hot dogs and the // number of packages of hot dog buns needed for a cookout, with the minimum amount // of leftovers. The program should ask the user for the number of people attending // the cookout. Assume each person will...
Lab 8: Cell Phone Bill CalculatorWrite the Python code for the following programming problem definition.Use modular design according to the modules specified below.Design and write a program that calculates and displays the number of minutes over the monthly contract minutes that a cell phone user incurred. The program should askthe user how many minutes were used during the month and how many minutes they were allowed. Validate the input as follows:• The minimum minutes allowed should be at least 100,...
Python coding exercise: please include comments Goal #1: import financial data given into your program provided to you as a CSV formatted text file Use the following data for testing (the following is only a sample of the data; there are over 4000 rows of data): *Note: The data you will read in is linear by date (but, non-contiguous due to holidays and weekends,) reflecting a timeline of stock performance in chronological order; however your program should run through the...
Python coding exercise: please include comments Goal #1: import financial data given into your program provided to you as a CSV formatted text file Use the following data for testing (the following is only a sample of the data; there are over 4000 rows of data): *Note: The data you will read in is linear by date (but, non-contiguous due to holidays and weekends,) reflecting a timeline of stock performance in chronological order; however your program should run through the...
Python 3 Question Please keep the code introductory friendly and include comments. Many thanks. Prompt: The owners of the Annan Supermarket would like to have a program that computes the weekly gross pay of their employees. The user will enter an employee’s first name, last name, the hourly rate of pay, and the number of hours worked for the week. In addition, Annan Supermarkets would like the program to compute the employee’s net pay and overtime pay. Overtime hours, any...
If you’re using Visual Studio Community 2015, as requested, the instructions below should be exact but minor discrepancies may require you to adjust. If you are attempting this assignment using another version of Visual Studio, you can expect differences in the look, feel, and/or step-by-step instructions below and you’ll have to determine the equivalent actions or operations for your version on your own. INTRODUCTION: In this assignment, you will develop some of the logic for, and then work with, the...
Hi. Please help me solve this in python using only while loops,
if statements. Can't use for loops and lists.
In this programming assignment, you will be writing a program that prints out several shapes via text. In this PA, you will be required to use functions and parameters. This is both to reduce redundancy and to make your code clean and well-structured. Name your program shaper.py Your program should have the capability to print out three different shapes: An...
(Python)
Suppose you are a bike shop owner who put together bikes free spare parts. Your customers come to you with parts they've legitimately) found in their pares, from scrap metalhes, ceand they ask you to build them all the bikes you can make with the parts they give you You build the bikes, charge them a big pile of money for the privilege, and keep the leftover parts for yourself It takes the following parts to create one bicycle...
Python Coding The script, `eparser.py`, should: 1. Open the file specified as the first argument to the script (see below) 2. Read the file one line at a time (i.e., for line in file--each line will be a separate email address) 3. Print (to the screen) a line that "interprets" the email address as described below 4. When finished, display the total number of email addresses and a count unique domain names Each email address will either be in the...