Answered step by step
Verified Expert Solution
Question
1 Approved Answer
88 acres is a holiday resort which has rooms of the types , Standard and Deluxe. the rooms can be rented on a pay-per-day basis
88 acres is a holiday resort which has rooms of the types , Standard and Deluxe. the rooms can be rented on a pay-per-day basis and the rates are different for foreign customers and local customers.The customers have the option of booking a room in one of the booking packages. Half Board or Full Board. The room rates for a day are given .
Follow Object oriented Programming concepts in Java and implement the following. (Note* using concepts like enums and exception handling highly recommended). Please upl.
2. 88 Acres is a Holiday Resort which has rooms of the types, Standard and Deluxe. The rooms can be rented on a pay-per-day basis and the rates are different for foreign customers and local customers. The customers have the option of booking a room in one of the booking packages, Half Board or Full Board. The room rates for a day are given below. 0094 4800 Customer Type Room Type Deluxe Standard Half Board Full Board Half Board Full Board 20,000/- 30,000/- 12,000/- 19,000/- 13,000/- 20,000/- 7,000/- 12,000/- Foreign Local oet To provide incentives for higher paying customers, the hotel management has come up with a discounts scheme for customers who choose deluxe rooms. The discount scheme is as follows. The discount applies for full payment. score Customer Type Foreign Local Package Half Board Full Board 5% (more than 3 days) 8% (more than 2 days) 6% (more than 3 days) 4000 Note that when modeling classes, appropriate access modifiers should be defined for all the members of a class and instance variables should be accessed using only set and get methods. a) Model and Implement the Customer Class. The class should be able to store the name, NIC/Passport number, CustomerType. NIC/Passport number should be used to identify the customers uniquely. b) Model and Implement the class; Room, which can store the Room number and has the abstract method, calPayment(int numofDays, String customerType, String roomPackageType). The method should return the appropriate payment for the room for given number of days. c) Model and Implement the classes for Deluxe and Standard rooms as subclasses of Room d) 1. Model and Implement the class Q2SXXXXX, where SXXXXX represents your Registration number. This class should act as the driver class and should take the required information which is needed to calculate the full payment, The User should be prompted to enter the following information in the following order when he/she is placing the order. Name of the customer. [Continue ...] i. 2 | D.M.H. 2018 12. Continued) ii. Type of the customer - He/She should be able to enter whether he/she is a local customer or a Foreign National Input Please specify whether you are a local Customeril) or a Foreign Nationalff) Cancel iii. NIC/Passport Number The type of Room, which the customer requires. iv. Input Please Specify the Required Room Type Enter for Deluxe Enter S for Standard OM Cancel V. The package that the customer would like to purchase Input Please specify the package you would like to purchase Enter F for Full Board Enter for Half Board OK vi. No. of Days for which the room would be booked Then the payment that the user should make should be displayed on the screen with details he/she provided in the manner shown below. Message Customer Name: Mr. LB. Rathnayake Carstomer type: Local Hun lype :D Package type of card Number of days Payment:Rs. 2002.09 OK EN | D.M.H. 2018 |Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started