Provide rental car transaction java classes


Assignment: Java Program

Using the provided Rental Car Transaction Java Classes - Load the data to produce the results similar as given below.

To do this, you will need to do the following. This should all be done solely in the RentalCarTransaction main() method.

1. Load the values for this class using the setter methods. LocalDate items do not need to be set - only Strings and missing numeric data.

2. When creating data for the addresses, the Drop Off Location needs to be the same as the PickupLocation. (Hint - Avoid duplicate code)

3. Set the current Mileage for the carToRent instance. Set the startMileage of the Rental Transaction by calling the getCurrentMileage() from the carToRent instance.

4. Set the endMileage of the RentalTransaction to be 200 more miles than the startMileage.

5. There should be no 'null' or -1 values.

See the "Things to Know" section for more information about passing Long and Short literal values to methods.

The program provided is runnable as-is. Your task is to load the data with reasonable values.

The deliverable is the updated RentalCarTransaction.java file only. No other classes are to be changed.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Provide rental car transaction java classes
Reference No:- TGS03025044

Expected delivery within 24 Hours