Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in JAVA please example input: Please code in JAVA 6 Apple 0.25 Banana 0.75 Milk 3.15 Orange 1.25 Salami 2.50 Sponge 1.15 3 Carrie

Code in JAVA please

example input:

image text in transcribed

image text in transcribed

Please code in JAVA

6 Apple 0.25 Banana 0.75 Milk 3.15 Orange 1.25 Salami 2.50 Sponge 1.15 3 Carrie Brownstein 32 Banana 1 Orange 2 Milk Corin Tucker 2 3 Banana 2 Sponge Janet Weiss 1 5 Salami A1Jedi This program will read in data with the same form as A1Adept and as output will report for each item how many different customers bought that item and the total quantity of the item bought by all customers. Each item should be reported in the same order as specified in the beginning of the input. Each report line should have the form: NUMBER customers bought TOTAL ITEM where NUMBER is the number of customers that bought the item, TOTAL is the total quantity of the item bought by all customers and ITEM is the item name. If no customers bought an item, then the report for that item should be in the form: No customers bought ITEM For example, the same input provided as an example for A1 Adept above should produce the following output for A1Jedi: No customers bought Apple 2 customers bought 5 Banana 1 customers bought 2 Milk 1 customers bought 1 Orange 1 customers bought 5 Salami 1 customers bought 2 Sponge

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions