Reference no: EM132196620
Write a C++ program that prompts the user to input the elapsed time for an event in seconds.
The program then outputs the elapsed time in hours, minutes, and seconds.
(For example, if the elapsed time is 9630 seconds, then the output is 2:40: 30.), and seconds.
The program then outputs the elapsed time in seconds.) 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 does the following:
Prompts the user to enter the total amount of milk produced in the morning.
Outputs the number of milk cartons needed to hold milk.
(Round your answer to the nearest integer.)
Outputs the cost of producing milk. Outputs the profit for producing milk.