Question
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
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