Question: Question2 You are asked to write a java program to simulate a small shop. First, you need to read the number of items bought by

 Question2 You are asked to write a java program to simulate

Question2 You are asked to write a java program to simulate a small shop. First, you need to read the number of items bought by a client. You should read the price of all items in an array. You should also read the quantity in an array. The program should display the total per item (price quantity) in an array Finally, you should display the total bill to be paid by the client. The program stops directly when the user enters an invalid input (negative value or zero)

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!