Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions