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?!
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
Step: 1
Everything is correct except for two things In cycle class spell it as Cycl...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