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

java
Question2 You are asked to write a java program to simulate a small shop First, you need to read the number of itens 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), Page 2 of 3 CSCI2SOL Makeup Final Exam Fall 2020 / Sample runi: Enter the number of Items : 4 Enter the price for each Item: 10 20 S 30 Enter the quantity for each item: 4 3 6 5 The total per item is: 40 60 30 150 The total of your bill is 2805 Sample run: Enter the number of items: 3 Enter the price for each item: 15-6 Invalid input for price Sample run 3: Enter the number of items: Enter the price for each item: 50 32 50 50 Enter the quantity for each item: 4-2 Invalid Input for quantity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
