Question: Part III: Driver Class (Polymorphism): Question 1 [20 points]: Write a driver class that: 1. Creates a Store object which data are given by the

 Part III: Driver Class (Polymorphism): Question 1 [20 points]: Write a

Part III: Driver Class (Polymorphism): Question 1 [20 points]: Write a driver class that: 1. Creates a Store object which data are given by the programmer (Not from the us 2. Adds to the Store object two AC devices and two DC devices (data are given by 3. Prints the DC devices that have power consumption less than 20 W. 4. Prints all AC devices in the store with frequency 60Hz. java.util.ArrayList +ArrayList() +add(o: E): void +addindex: int, o: E): void +clear(): void +contains(o: Object): boolean +get(index: int): E +indexOf(o: Object); int +isEmpty(): boolean +lastIndexOf(o: Object): int +remove(o: Object): boolean +size(): int +remove(index: int): boolean +set(index: int, o: E): E Part III: Driver Class (Polymorphism): Question 1 [20 points]: Write a driver class that: 1. Creates a Store object which data are given by the programmer (Not from the us 2. Adds to the Store object two AC devices and two DC devices (data are given by 3. Prints the DC devices that have power consumption less than 20 W. 4. Prints all AC devices in the store with frequency 60Hz. java.util.ArrayList +ArrayList() +add(o: E): void +addindex: int, o: E): void +clear(): void +contains(o: Object): boolean +get(index: int): E +indexOf(o: Object); int +isEmpty(): boolean +lastIndexOf(o: Object): int +remove(o: Object): boolean +size(): int +remove(index: int): boolean +set(index: int, o: E): E

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!