A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a java program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More JavaScript Interview Questions

How do you create a new object in JavaScript?

3 Answers   Satyam,


How to achieve inheritance in javascript?

0 Answers  


How do you convert numbers between different bases in JavaScript?

4 Answers   College School Exams Tests, Satyam, UIST, Wipro,


What is scope of variable in javascript?

0 Answers  


Is there an ide for javascript?

0 Answers  






How do I turn on javascript?

0 Answers  


If an array with name as "names" contain three elements, then how will you print the third element of this array?

0 Answers  


Where do I put javascript in html?

0 Answers  


How to convert numbers to strings using javascript?

0 Answers  


How can the os of the client machine be detected?

0 Answers  


What is the difference between an array and an object?

0 Answers  


How do I open javascript console?

0 Answers  


Categories