Question: C++ Programming Exercise 2-16 A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local
C++ Programming Exercise 2-16
A milk carton can hold 3.78 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.38, and the profit of each carton of milk is $0.27.
Write a program that prompts the user to enter:
The total amount of milk produced in the morning.
The program then outputs:
The number of milk cartons needed to hold milk.
Round your answer to the nearest integer.
The cost of producing milk.
The profit for producing milk.
C++ NO JAVA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
