You will now add to your program, other vacation items. We will add travel by airplane, renting a car and adding a luxury hotel option. This will all be accomplished by using inheritance....

You will now add to your program, other vacation items. We will add travel by airplane, renting a car and adding a luxury hotel option. This will all be accomplished by using inheritance.


Requirements:


Use the LuxuryHotel.java file and add it to your hotelPackage. The instance variables and constructor was already created for you. Create setters and getters for the instance variables. Create methods to calculate costs of the following services: dry cleaning and spa cost. Dry cleaning is done by the rate * the number clothes and the spa is calculated by the rate * hours.


Implement the Rentable interface. When implementing, add any necessary methods to calculate rental cost. Use the rentalCarPackage


Extend the Airline abstract class. Use the class built as a basis and add any necessary methods to complete a reservation for an airline trip. Use the airlinePackage for the class.


Update the Menu class as needed to accommodate these new options.


Run the program and add four guests (You make up the guest details and info for flight, car, hotel, etc). Modify the program to print to a file instead of a console. Like a manifest, showing the guest, their destination, their flight info, the hotel, and car rental info. You will modify the existing classes to print to a file. Remember to use exceptions to ensure the program does not crash when printing to a file.



Submission:


Submit all the .java files.Do not zip them. Submit each individual file. Submit the text file containing the travel manifest.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here