Question: This task must be performed on Java At a sales checkout in a supermarket, customers queue up to buy different numbers of products with different

This task must be performed on Java

At a sales checkout in a supermarket, customers queue up to buy different numbers of products with different prices. Write an algorithm and then a program that will find the total price for a customer and display it on the screen (Note that nobody knows how many products a customer selected). The program should then ask if another customer is waiting and if there is process the sales to that one in the same way. If there are no more customers, the program should terminate with a suitable message.

Requirements:

- JOptionPane.showInputDialog must be used. No scanners

- User-friendly

- Pseudocode algorithm

- Nested loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!