Question: Computer Parts and Kits Write a Computerpart class and a ComputerKit class and a client class to test them). The ComputerPart class has two instance

Computer Parts and Kits Write a Computerpart class and a ComputerKit class and a client class to test them). The ComputerPart class has two instance variables: a String representing an item (for instance. "cpu" or "disk drive"), and a double representing the price of the item. The ComputerKit class has just one instance variable: an ArrayList of ComputerPart objects (they make up a computer) representing the list of parts for the computer kit. You should include the following methods: a method that adds a ComputerPart to the kit. a method returning "expensive" if the total of the prices of the ComputerPart objects is greater than 1,000, "cheap" if it is less than 250, "normal" if it is between 250 and 1,000 a method returning true if a certain item is included in the list of parts: false otherwise for instance, "cpu", or "memory") is found in . a method returning how many times a particular item the list of parts ArrayList Methods Write a class that contains the following methods: reverse (ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
