Question: i need some help whith this problem in elcipse PLZ Write a java program that simulates a cashier terminal. Assume that a customer is purchasing
i need some help whith this problem in elcipse PLZ
Write a java program that simulates a cashier terminal. Assume that a customer is purchasing an unknown number of different merchandise items, possibly with multiple quantities of each item. Use a while loop to prompt for the unit price and quantity. The loop should continue until the unit price is zero. Display a subtotal for each item. After the loop display the total amount due. Use currency format where appropriate. See Sample Run (inputs shown in blue). Sample Run Enter item price or zero to quit 2.49 Enter quantity for this item 3 Total this item is $7.47
Enter item price or zero to quit 3.79
Enter quantity for this item 2
Total this item is $7.58
Enter item price or zero to quit 5.99
Enter quantity for this item 4
Total this item is $23.96
Enter item price or zero to quit 0
Total is $39.01
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
