Question: Code in JAVA please. Code in JAVA please. A1Adept This program will also read in shopping order data but now provided in a slightly different
Code in JAVA please. 
Code in JAVA please.
A1Adept This program will also read in shopping order data but now provided in a slightly different form and will produce output that reports the customers that were the biggest and smallets spenders as well as the average bill for all customers. Input to the program will have the following form: An integer count of the number of items in the store. Then for each item in the store.... The name of each item (a single word) o The price of the item An integer count of the number of customers . Then for each customer... O The first name of the customer o The last name of the customer o An integer count of the number of items the customer bought. o For each of the items bought... The quantity of the item bought The name of the item The output of the program should be exactly three lines in the following form: Biggest: FIRST LAST (AMOUNT) Smallest: FIRST LAST AMOUNT) Average: AVERAGE ... where FIRST and LAST are the first and last names of the biggest and smallest spenders as appropriate, AMOUNT is the amount spent, and AVERAGE is the average amount spent. For example, the following input: Apple 0.25 Banana 0.75 Milk 3.15 Orange 1.25 Salami 2.50 Sponge 1.15 3 Carrie Brownstein 3 2 Banana 1 Orange 2 Milk Corin Tucker 2 3 Banana 2 Sponge Janet Weiss 1 5 Salami Should produce the following output: Biggest: Janet Weiss (12.50) Smallest: Corin Tucker (4.55) Average: 8.70
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
