Question: A hotel manager is looking for a Java programmer who can develop a reservation system that shall maintain information about the hotel guests and can

 A hotel manager is looking for a Java programmer who can
develop a reservation system that shall maintain information about the hotel guests

A hotel manager is looking for a Java programmer who can develop a reservation system that shall maintain information about the hotel guests and can manage the reservation of hotel rooms. To solve this problem you are required to do the following: 1. Create a java class" reservation that has data members guestName, passporto, CheckinDay, CheckInMonth CheckOutDay, CheckoutMonth, and pricePer Night. (0.5 Mark) 2. Create a method setAll(), that shall fill the class data members. (0.5 Mark) 3. Create a method calculateNights(), this method shall return the number of nights that the guest stayed in the hotel Consider that all the year months has 30 days (3 Marks) 4. Create a method invoice() This method shall return the room total price. The total price includes the total cost of staying in the hotel for number of nights in addition to 20% municipality tax 12 Marks) 5. Create a method printinvoice(), this method shall return the following (2 Marks) Guest name Passport number Check-in date - Check-out date - Number of nights - Total cost before and after tax 6. Write a main class and test your program 7 Declare one objects questi and fill the objects data from the keyboard (1 Mark) 8. Print the invoice of guest in a nice format (1 Mark) For the toolbar.press ALT+F10 (P) O ALT+FN+FOMC) EYA 61

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!