A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships car
ID: 3619989 • Letter: A
Question
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
class is at 7 and i need to leave at around 6:45, i really don't understand this the teacher doesn't explain anything help please!
Explanation / Answer
import java.util.Scanner;
public static void main(String[] args)
{
//Taking Scanner input
java.util.Scanner input =new java.util.Scanner(System.in);
}
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.