Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP URGENT JAVA An online shopping platform sells sports item. A sports item has an id, a name, a sports category (swimming, biking, football, etc.),

HELP URGENT JAVA

An online shopping platform sells sports item. A sports item has an id, a name, a sports category (swimming, biking, football, etc.), a collection of materials (cotton, polyester, viscose, etc.), price and an array of ratings given by clients. An sports item can receive a new rating by the use of the addRating(int rating) method. Also a sports item has an overall rating which is the average rating (computed by eliminating the top 3% ratings and the bottom 3% ratings). The class Store contains the collection of sports items. Implement the SportsItem and Store classes. The store has a method which specifies how many items have rating between 0-1, between 1-2, between 2-3, between 3-4 and between 4-5. Create a main method which tests the program with relevant data based on data which is read from a file and output in a file the items with rating between 4 and 5.

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

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

Discuss the various types of policies ?

Answered: 1 week ago