15:Rental Car Data LoadRentalCarTransaction.javaUsing the provided Rental Car Class – 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 the RentalCarTransaction() constructor.1. Load the values for this class using the setter methods. LocalDate items do not need to be set – only Strings and numeric data.2. You will need to create the toString method for the Address class. Otherwise you may only see getPickupLocation()=RentalCarTransaction$Address@57baeedfSee Eclipse – Generating toString from Week 13 Things to Know if needed: When creating data for the addresses, the DropOffLocation needs to be the same as the PickupLocation. (Hint – try to avoid duplicate code)3. Load the startMileage for the RentalTransaction instance by calling the getCurrentMileage() from the carToRent instance. Note the same values for getCurrentMileage on the first line and getStartMileage on the last line.4. Display the toString result of the is class (RentalTransaction) There should be no ‘null’ or -1 values. The program is runnable as-is. Your task is to load the data with reasonable values.RentalCarTransaction [getCarToRent()=Automobile [getAutoManufacturer()=Chevy, getModel()=Monte Carlo, getCurrentMileage()=2250, getModelYear()=2019, getSeatingCapacity()=4, getVIN()=G4343243243432], getPaymentInfo()=FormOfPayment [getCardProviderName()=VISA, getCardUser()=Professor Keith, getCreditCardNumber()=4234123412341234, getCVC()=888, getExpirationDate()=2020-05-31], getPickupLocation()=Address [getLocationName()=Airport, getStreet1()=100 Airport Lane, getStreet2()=Building G, getCity()=Dallas, getStateCode()=TX, getZipCode()=75555], getDropOffLocation()=Address [getLocationName()=Airport, getStreet1()=100 Airport Lane, getStreet2()=Building G, getCity()=Dallas, getStateCode()=TX, getZipCode()=75555], getStartDate()=2019-04-30, getEndDate()=2019-04-30, getStartMileage()=2250, getEndMileage()=2800]
Recent Posts
- Transpose and Associative Property [1pt] Define matrix B = bbT , whereb ? R d×1 is a column vector that is not all-zero. Show that for any vector x ? R d×1 , x T Bx = 0. Math Algebra
- Image transcription textQuestion 1 What is the frequency of the Aa genotype? O 0.90 O 0.09 O 0.18… Show more Science Biology
- Define the Defense Contract Management Agency’s and Defense Contract Audit Agency’s role.Describe how a Defense Contract Audit Agency audit report can help meet a negotiation objective. within the last five years, defense contract audit report and what was the reasons for the audit, the findings an
- Business Accounting Week 3 – PowerPoint & Quiz_ Chapter 5_ ACC205_ Principles of Accounting I (BAG1744A).pdf
- Image transcription textQUESTION 31 Which of the following chart types requires at date field? line chart O a. bar chart O b. pie chartOC scatter plot O d…. Show more Engineering & Technology