Create a new JavaFX project called usernamePart3 in NetBeans. In my case the project would be called rghanbarPart3.

For this part of the assignment you need to build an app that stores a collection of cars for a small car rental company (see attached class at the end of this assignment). Your app will allow the user (company's staff) to enter data about a car. When the user is finished, the data will be written to a Car object and then the Car object will be added to a LinkedList. The user can then enter data for a new car and repeat the process.

Your app will need the following UI controls that will be mapped to instance variables in the Car class provided at the end of this document:

  • Text field for the car make
  • Text field for the car model
  • Slider for the year (car production year e.g. 2019)
  • Radio buttons for the transmission type (Automatic and Manual)
  • A combo box for car's body type (SUV, Sedan, Hatch, and Ute)
  • A list view for the following four types of insurance coverage provided to the customer:
    • Collision Damage Waiver (CDW)
    • Supplemental Liability Protection (SLP)
    • Personal Accident Insurance (PAI)
    • Personal Effects Coverage (PEC)
  • Check boxes for some extra options that the car might have (e.g. rear-view camera, GPS or satellite navigation, extra airbags, extra tinting)

Once a user has entered the data for a car, your app needs to do the following:

  • Write the data from the UI to a Car object (use the attached class at the end of this assignment)
  • Add the Car object to a LinkedList that will store all cars entered by the user
  • Reset the UI controls so the user can enter a new car

One way to do this would be to have the following (you do not have to do it this way):

  • A "New Car" button that resets the UI controls
  • An "Add Car" button that creates a new instance of the car, sets the cars instance variables (via the mutator methods) using the values from the UI controls and then adds the car to the LinkedList

PLEASE NOTE:

  • You CANNOT modify the attached Car class
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.