0
C++ questionïżŒ (help) can any one get me the code for this? Plz
6) 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: ââ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.
3 RĂ©ponses
+ 5
ward saadeh , if you don't know how to start, a very simple approach is to do this task on a piece of paper first. do this in consecutive and logical steps. if this is done and clear for you, start writing the code.
happy coding and much success!
+ 3
We can't just provide you the solution code as we believe it will prevent you from challenging yourself and learning.
Please show us your attempt so far so we may help. Thanks.
+ 3
It is quite easy and if you can't even come up with some solution then you won't learn anything , if you really wanna learn ,try asking doubts that you have related to the question.