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 DropOffLocation needs to be the same as the PickupLocation.  (Hint - Avoid duplicate code) 3. Set the currentMileage for the carToRent instance. Set the startMileage of the RentalTransaction 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.   Below is an example of what type of output is expected: RentalCarTransaction [ carToRent=Automobile [autoManufacturer=Audi, model=TT, currentMileage=5500, modelYear=2020, seatingCapacity=4, automobileVIN=G434T54354371234T], paymentInfo=FormOfPayment [cardProviderName=VISA, cardUser=Professor Keith, creditCardNumber=1234567812346789, creditCardVerificationCode=123, expirationDate=2025-05-31], PickupLocation=Address [optionalLocationName=Hilton Hotel, street1=100 Main, street2=Building A, city=Dallas, stateCode=TX, zipCode=75555], DropOffLocation=Address [optionalLocationName=Hilton Hotel, street1=100 Main, street2=Building A, city=Dallas, stateCode=TX, zipCode=75555], StartDate=2019-11-26, EndDate=2019-11-26, StartMileage=5500, EndMileage=5700]

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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 DropOffLocation needs to be the same as the PickupLocation.  (Hint - Avoid duplicate code)

3. Set the currentMileage for the carToRent instance. Set the startMileage of the RentalTransaction 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.

 

Below is an example of what type of output is expected:

RentalCarTransaction [
 carToRent=Automobile [autoManufacturer=Audi, model=TT, currentMileage=5500, modelYear=2020, seatingCapacity=4, automobileVIN=G434T54354371234T],
 paymentInfo=FormOfPayment [cardProviderName=VISA, cardUser=Professor Keith, creditCardNumber=1234567812346789, creditCardVerificationCode=123, expirationDate=2025-05-31],
 PickupLocation=Address [optionalLocationName=Hilton Hotel, street1=100 Main, street2=Building A, city=Dallas, stateCode=TX, zipCode=75555],
 DropOffLocation=Address [optionalLocationName=Hilton Hotel, street1=100 Main, street2=Building A, city=Dallas, stateCode=TX, zipCode=75555],
 StartDate=2019-11-26,
 EndDate=2019-11-26,
 StartMileage=5500,
 EndMileage=5700]

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education