Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you please create this simple program in Visual Studio 2012, C# and using Windows Forms Room Booking System A manager of a hotel contacts
Can you please create this simple program in Visual Studio 2012, C# and using Windows Forms
Room Booking System A manager of a hotel contacts with your company in order to implement an application to manage their room booking system in his hotel. The software engineering group summarizes the specification as following The classes that describe the systems are: o Person class has three instances: name (string), phone number (long) and email (string). The related class must be constructed using three parameters to set the associated variables (constructor with three arguments). Also it has Print (virtual) method to return all information about the associated Person as a string value. o Guest class is derived from Person class. It has one instance: payment method (string) (cash, creditcardj. The constructor must initialize all the related data (name, phone number, email and payment method). Also the Print method (inherited from Person) return all information about the guest ( including the inherited information) o HotelEmployee class is derived from Person class. It has one instance: salary nt). The constructor must initialize all the related data (name, phone _number, email and salary Also the Print method (inherited from Person) retu all information about the hotel employee ( including the inherited information) o Room class has two instances: number (int) and busy (bool). The constructor takes two arguments to set the instances values. Room Locator class which represents the booking operation for any room at any time. The class has the following instances o -user (Person): represents the person who the room is booked for her him (can be guest or hotel employee) First 2017 - room (Room): represents the room to be booked inDate (Date): represents the date when the booking start outDate (Date): represents the date when the booking finish The class has a constructor seven arguments: the first four to initialize the user (object of Person), the second two to initialize the room (object of Room) and the last argument to set inDate. Also, the class has a method ComputeCost thattakes an argument of type Date, set outDate using the pass argument and returns the value of payment. The method uses inDate & outDate to compute and return the payment. The payment is computed as following: -If the user is guest: Payment 20JD for the first five days, and 10 JD for every day after the first five. If the user is hotel employee: payment SJD for the first two days, and 3 JD for every day after the If the room booked more than 30 days, the employee gets a discount on the payment computed by 10% of his salary (e.g: if the employee salary is 500 JD the amount of discount is 50) E Develop GUI using C Windows Form that enables the booking employee to o Book a room for a specific person. The booking process ask for the following data The " User information (name, phone, email) Room information (number, set busy to true) Entering Date Cancel the booking using the user name. The canceling process demands to insert leaving Date in order to compute the payment. The canceling process completes with creating the booking bil. o "The booking bill shows information of user and room, inDate, outDate and total cost O At any time, a list of booking rooms (user do not check out). Hint: ?e a list of in your WinForm Room Booking System A manager of a hotel contacts with your company in order to implement an application to manage their room booking system in his hotel. The software engineering group summarizes the specification as following The classes that describe the systems are: o Person class has three instances: name (string), phone number (long) and email (string). The related class must be constructed using three parameters to set the associated variables (constructor with three arguments). Also it has Print (virtual) method to return all information about the associated Person as a string value. o Guest class is derived from Person class. It has one instance: payment method (string) (cash, creditcardj. The constructor must initialize all the related data (name, phone number, email and payment method). Also the Print method (inherited from Person) return all information about the guest ( including the inherited information) o HotelEmployee class is derived from Person class. It has one instance: salary nt). The constructor must initialize all the related data (name, phone _number, email and salary Also the Print method (inherited from Person) retu all information about the hotel employee ( including the inherited information) o Room class has two instances: number (int) and busy (bool). The constructor takes two arguments to set the instances values. Room Locator class which represents the booking operation for any room at any time. The class has the following instances o -user (Person): represents the person who the room is booked for her him (can be guest or hotel employee) First 2017 - room (Room): represents the room to be booked inDate (Date): represents the date when the booking start outDate (Date): represents the date when the booking finish The class has a constructor seven arguments: the first four to initialize the user (object of Person), the second two to initialize the room (object of Room) and the last argument to set inDate. Also, the class has a method ComputeCost thattakes an argument of type Date, set outDate using the pass argument and returns the value of payment. The method uses inDate & outDate to compute and return the payment. The payment is computed as following: -If the user is guest: Payment 20JD for the first five days, and 10 JD for every day after the first five. If the user is hotel employee: payment SJD for the first two days, and 3 JD for every day after the If the room booked more than 30 days, the employee gets a discount on the payment computed by 10% of his salary (e.g: if the employee salary is 500 JD the amount of discount is 50) E Develop GUI using C Windows Form that enables the booking employee to o Book a room for a specific person. The booking process ask for the following data The " User information (name, phone, email) Room information (number, set busy to true) Entering Date Cancel the booking using the user name. The canceling process demands to insert leaving Date in order to compute the payment. The canceling process completes with creating the booking bil. o "The booking bill shows information of user and room, inDate, outDate and total cost O At any time, a list of booking rooms (user do not check out). Hint: ?e a list of in your WinForm
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