subject
Mathematics, 05.02.2022 14:00 rhettnyah

. Read from input the number of people (int), average nuggets per person (float) and cost of one order of nuggets(float). Calculate the number of orders of nuggets needed (10 nuggets per order). There will likely be leftovers for breakfast. Hint: Use the ceil() function from the math library to round up to the nearest whole number and convert to an int. Calculate and output the cost for all order of nuggets. Submit for grading to confirm test 1 passes. import math # Type your code here.

# example output statement explained
# num_orders is a variable
# cost is a variable
# anything inside ' ' that is not in {} is the exact text you will see in the output
# f represents you are print out a floating point number without inidicating how many decimal points
# : .2f represents you are printing out a floating point number with formatting, always 2 decimal points
print(f'{num_orders} Orders of Chick-fil-a Nuggets: ${cost:.2f}')

ansver
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 22:30, laura1649
What is the common difference for this arithmetic sequence? -6,-2,2,6,10 a.4 b.5 c.3 d.6
Answers: 1
image
Mathematics, 22.06.2019 03:20, juliannasl
The equation ip| = 2 represents the total number of points that can be earned or lost during one turn of a game. which best describes how many points can be earned or lost during one turn?
Answers: 3
image
Mathematics, 22.06.2019 06:30, sIatt
The life (in hours) of a magnetic resonance imagining machine (mri) is modeled by a weibull distribution with parameters β = 2 and δ = 370 hours. (a) determine the mean life of the mri. (round your answer to 2 decimal ) determine the variance of the life of the mri. (round your answer to 1 decimal ) what is the probability that the mri fails before 250 hours? (round your answer to 4 decimal places.)
Answers: 2
image
Mathematics, 22.06.2019 07:00, rorob
What is 156,420 rounded to the nearest 100,000
Answers: 1
You know the right answer?
. Read from input the number of people (int), average nuggets per person (float) and cost of one ord...

Questions in other subjects:

Konu
Mathematics, 31.03.2021 18:40
Konu
Mathematics, 31.03.2021 18:40
Konu
History, 31.03.2021 18:40
Konu
Mathematics, 31.03.2021 18:40