#A milk carton can hold 4.5 liters of milk. # Each morning, a dairy farm ships cartons of # milk to a local grocery store. The cost of # producing one liter of milk is $0.35, and # the profit of each carton of milk is $0.25. # Write a program that does the following: %23 # a) Prompts the user to enter the total amount of milk produced in the morning #b) Outputs the number of milk cartons needed to hold milk (Round your answor to the nearest integer.) #c) Outputs the cost of producing milk *d) Outputs the profit for producing milk %23 * Sample input and output: # How many litres have you collected %23 * 1000 # Number of cartons: 222 * Cost of production: 350.0 # Profit: 55.5 #The details we know: capacity = 0.35 profit per carton

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Python fill the blank
* How many litres have you collected
* 1000
* Number of cartons: 222
# Cost of production: 350.0
* Profit: 55.5
The details we know:
capacity =
0.35
profit per_carton
*a)
itres produced float(
How mary litres have you collected?
b)
num cartons
Itres produced
capacity
(Number of cartons: " +
(num_cartona)
c)
litros produced
cost per_litre
print
"Cost of production:
atr(cont.of.production)
profit profit per.carton"
printProfit:+ str
Transcribed Image Text:* How many litres have you collected * 1000 * Number of cartons: 222 # Cost of production: 350.0 * Profit: 55.5 The details we know: capacity = 0.35 profit per_carton *a) itres produced float( How mary litres have you collected? b) num cartons Itres produced capacity (Number of cartons: " + (num_cartona) c) litros produced cost per_litre print "Cost of production: atr(cont.of.production) profit profit per.carton" printProfit:+ str
#A milk carton can hold 4.5 liters of milk.
# Each morning, a dairy farm ships cartons of
# milk to a local grocery store. The cost of
# producing one liter of milk is $0.35, and
# the profit of each carton of milk is $0.25.
# Write a program that does the following:
23
# a) Prompts the user to enter the total amount of milk produced in the morning
# b) Outputs the number of milk cartons needed to hold milk (Round your answer to the nearest integer.)
#c) Outputs the cost of producing milk
# d) Outputs the profit for producing milk
* Sample input and output:
# How many litres have you collected
# 1000
# Number of cartons: 222
# Cost of production: 350.0
# Profit: 55.5
# The details we know:
capacity=
0.35
profit_per carton
# a)
Transcribed Image Text:#A milk carton can hold 4.5 liters of milk. # Each morning, a dairy farm ships cartons of # milk to a local grocery store. The cost of # producing one liter of milk is $0.35, and # the profit of each carton of milk is $0.25. # Write a program that does the following: 23 # a) Prompts the user to enter the total amount of milk produced in the morning # b) Outputs the number of milk cartons needed to hold milk (Round your answer to the nearest integer.) #c) Outputs the cost of producing milk # d) Outputs the profit for producing milk * Sample input and output: # How many litres have you collected # 1000 # Number of cartons: 222 # Cost of production: 350.0 # Profit: 55.5 # The details we know: capacity= 0.35 profit_per carton # a)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY