write an object-oriented console application in the Java programming language which adheres to the following basic object-oriented programming principles: Your code should follow good object-oriented...

write an object-oriented console application in the Java programming language which adheres to the following basic object-oriented programming principles:

  1. Your code should follow good object-oriented principles such as encapsulation, composition, cohesion, etc...

  2. Setting the visibility of all instance variables to private or protected.

  3. Using getter and setter methods only where needed and appropriate with consideration given to scope & visibility.

  4. Only use static variables and methods when there is good reason to do so, such as reducing code repetition whilst still maintaining good objected-oriented design.

  5. Using superclass methods to retrieve and / or manipulate superclass properties from within subclasses, avoiding direct access to class attributes if possible.

  6. Taking advantage of polymorphism wherever possible when invoking methods upon objects that have been created and avoiding unnecessary casting.


You are being assessed on your ability to write a program in an object-oriented manner. Writing the program in a procedural style is not permitted and will be considered inadmissible receiving a zero grade.The following guidelines apply throughout this assessment:

  1. Youmustuse an array to store any collections of objects in your program.

  2. You mustnotuse ArrayList, HashMap or any other data structures within the Java API or from 3rd party libraries.


OverviewYou will build a Vehicle Management System, vehicle details will be recorded, including a vehicle’s maintenance information. A vehicle is identified by a rego, a rego must be 2 digit characters followed by 3 uppercase characters followed by 1 digit character, for example 11ABC1. A vehicle can be booked for aJob, aJobis intentionally simplified to only involve travelling a distance in kilometres. The two types of vehicles areVan’sandTruck’s, vehicles can only travel a specified distance before they require to be serviced andcannotperform aJobif theJob’sdistance would exceed the servicing requirement.
Nov 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here