Develop car rental application may use to produce a receipt

Develop car rental application may use to produce a receipt. A receipt will be formatted as follows: E Z R I D E R Rental Receipt John Jones Customer Driver License PA 12343 Telephone 724-555-8345 Credit Card VISA 12345678012 Vehicle Mercedes 350E Tag 342399 Rent Class Luxury Sedan Daily Rate 95.00 Weekly Rate 545.00 Date/Time out 01/10/2017 at 10:45 Date/Time In 01/20/2017 at 11:44 Rental charge 830.00 Airport Tax 150.00 Sales Tax 49.80 Total 1029.80 For this application create four main classes for customer, rental class, vehicle, and rental agreement. The customer class should have six pieces of information (i.e. instance variables) including customer name (as a String), driver\'s license state (as a String), driver\'s license number (as an int), telephone number (as a string), card type (as String), and credit card number (as A rental class represents the rental terms for a class of vehicle. For example Compact, Mid-Size, Full Size, Sport etc. are classifications of cars with each time having different rental terms. A rental class should have three pieces ofinformation: a rental class name (as a String), a daily rate (as a double) and a weekly rate (as a double). A vehicle should have four pieces of information: a make/model (as a String), state issuing a tag (as astring), a tag number (as a String) and a rental class (as a rental class). Lastly a rental agreement is the agreement of a customer to rental a given vehicle together with the rental terms, date/time out and date/time in. Thus a rental agreement has 4 pieces of information: the customer, the vehicle, date/time out (as a LocalDateTime) and dateltime in. For your customer class, provide a constructor accepting values for all instance variables. Provide getter methods for all instance variables, but setter methods for only the telephone, credit card type and credit card number variables.

Solution

Main.java ---

Customer.java -------

Vehicle.java -------

Rental.java -----

RentalAgreement.java -----

 Develop car rental application may use to produce a receipt. A receipt will be formatted as follows: E Z R I D E R Rental Receipt John Jones Customer Driver Li

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site