Question: The requirement of this assignment is to design and implement a system in Java that will manage the sub classes created in the User Designed

The requirement of this assignment is to design and implement a system in Java that will manage the sub classes created in the User Designed Object Assignment. The system should be able to add an instance to the array, remove an instance from the array, update an instance in the array, and list all instances in the array.

The System should read data for 3 to 5 sample instances from a text file, load the data into the appropriate object and add the object to the array. After loading the sample instances into the array, the system should display a menu similar to the one listed below. You menu does not have to exactly match this one

  • Add Instance to array
  • Remove instance from array
  • Update instance from array
  • List instances in array
  • Exit Program

There are some constraints to this assignment. You are not permitted to use any of the predefined collection objects in Java You cannot use the Array or ArrayList object to complete the assignment. Your goal is to create your own sub version of these predefined objects.

Here is the URL diagram of the User defined classes! is that enough?! MotorVehical Class Diagram Vehicle Inventory System Abstract Class with Two abstract methods VIN: String manufacture String c

Class Diagram Vehicle Inventory System Car - capacity: int -color: String + Car(): +Carlint, String) +getCapacity() int +getColor(): String setCapacity(int): void + setColor(String): void +toString(): String + equals(Car): boolean + compareTo(Car): int Motor Vehical -VIN: String -manufacture String -cost: double + MotorVehical(): + MotorVehical (String, String, double): +moveForward(): + moveBackward(): + getVaN(): String +getManufacturer(): +getCost (): double + setManufacturer[String): void + setCost (double): void +toString(): String < > TurnBahavior turnleft(X) +turnRight(): String Abstract Class with Two abstract methods Cyke Author: Craig Nelson wheels: int -seat Type: String + Cyde(): + Cyde(int, String) setWheels(int): void setSeatType(String):void + getSeat Type(): String getWheels() int +toString: String equals(Cycle): boolean compareTo(Cycle): int

Step by Step Solution

3.44 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To address the assignment requirements you need to create a custom system in Java that manages instances of subclasses from the MotorVehicle class ie Car and Cycle Heres a stepbystep guide Step 1 Defi... View full answer

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 Psychology Questions!