Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please provide the code in java. As a programmer, you have been assigned by a shop to create a program that can calculate overall price
please provide the code in java.
As a programmer, you have been assigned by a shop to create a program that can calculate overall price for purchased items and generate a daily report. First, the program asks the user to enter the number of items in the shop. Second, for each order, the program asks the user to enter the number of items, then asks for item name, price and quantity of each item, and calculate the total price of the order. This information should be kept in arrays. The program will continue asking the details of each order. At the end of the day, the program should display a report including the order number, number of items, total price for each order, and the overall price. Sample run: >>>>> Enter the number of all shop itema: 20 Enter the umber of items for order nol: Enter the item name 1 Enter the price of NEJKI Enter the quantity of Milk:2 Enter the item name 2: sad Enter the price of Bread: Enter the quantity of Bread: Enter the item name 3: LC Enter the price of rica: 10 Enter the quantity of sicer More order? (Y/N: Enter the number of items for order no2:2 Enter the item name 1:54 Enter the price of 9:10 Enter the quantity of Egg: Enter the item name 2: Enter the price of Sugar Enter the quantity of Sugar: 2 More orders (T/N Daily Report Order No. Number of Items Total Price 55.00 71.00 The overall price for today is: 126.0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started