Question: I need help with this Java programming assignment: Write a program that simulates a cashier terminal. Assume that a customer is purchasing three different merchandise
I need help with this Java programming assignment:
Write a program that simulates a cashier terminal. Assume that a customer is purchasing three different merchandise items, but possibly with multiple quantities of each item. Use a for loop to prompt for the quantity and unit price of each item. Display a subtotal for each item. After the loop display the total amount due. See Sample Run next.
Sample Run
Enter item 1 quantity 2
Enter item 1 unit price 2.49
Subtotal $4.98
Enter item 2 quantity 3
Enter item 2 unit price 1.19
Subtotal $3.57
Enter item 3 quantity 2
Enter item 3 unit price 4.99
Subtotal $9.98
Your total is $18.53
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
