Introduction to Business Programming BUS-ADM 810 Development of Web-Based Solutions Assignment 5 Implement a console application in C# for Continental Palms Hotel (CPH). The program repeatedly prompts...

1 answer below »
Need the assignment to have all the requirements given in the document. Please use visual studio to do the assignment.


Introduction to Business Programming BUS-ADM 810 Development of Web-Based Solutions Assignment 5 Implement a console application in C# for Continental Palms Hotel (CPH). The program repeatedly prompts the user to enter information about a reservation. The basic information about every reservation includes first name, last name, gender, room type, check in and check out dates, address (street, city, state, zip), home phone, and mobile phone. There are two special types of guests: employee of the hotel and VIP. The program also records the employee ID for an employee of the hotel and the starting date of a VIP guest. The program displays a short summary after each reservation has been entered. The summary includes, among others, the number of nights, room charge, tax, and total. The room price (per night) is determined by the room type: $119 for Standard, $159 for Deluxe, and $239 for Luxury Suite. The discount rate is determined by the guest type: 15% for Employee of the hotel, 10% for VIP, and 0% for any other guest. Tax rate is 5%. The program must use exception handling to maintain data integrity and must never crash. Name must consist of letters only. Gender must be ‘M’ or ‘F’. Room type must be ‘S’, ‘D’, or ‘L’. Check out date must follow check in date. The employee ID of an employee must be between 1000 and 9999. The starting date of a VIP guest must be prior to today. State must be one of the 50 states of the US. Zip code must be a five-digit number. Phone numbers must contain ten digits. The program must be written in an object-oriented style, using multiple classes and sub classes, applying encapsulation, inheritance, and polymorphism. Sample Dialog Welcome to the CPH Reservation System! Add a new reservation Guest type: E (employee), V(VIP), or O (other)? E Employee ID: 12333 Employee ID must be a number between 1000 and 9999! Employee ID: 1233 First Name: linda Last Name: smith Gender: f Room Type (S, D, L)? s Check in: 1/1/2019 Check out: 1/3/2019 Home Phone: 4148889999 Mobile Phone: 4142239997 Street Address: 189 N Glendale City: Milwaukee State: WI Zip: 53201 Employee Ms. Smith, Linda 189 N Glendale, Milwaukee, WI 53201 (414)888-9999, (414)223-9997, 2 nights, Standard Discount: 15% Room Charge: $202.30 Tax: $10.12 Total: $212.42 Employee ID: 1233 Do you want to quit (Y/N)?: n Add a new reservation Guest type: E (employee), V(VIP), or O (other)? V Starting Date: 1/1/2020 Start date must be prior to today! Starting Date: 1/1/2008 First Name: min Last Name: zhao Gender: m Room Type (S, D, L)? d Check in: 1/3/2019 Check out: 1/5/2019 Home Phone: 4148889999 Mobile Phone: (414)2223899 Street Address: 100 W Good Hope Rd City: Fox Point State: Wisconsin Zip: 53217 VIP Mr. Zhao, Min 100 W Good Hope Rd, Fox point, WI 53217 (414)888-9999, (414)222-3899, 2 nights, Deluxe Discount: 10% Room Charge: $286.20 Tax: $14.31 Total: $300.51 Since 1/1/2008 Do you want to quit (Y/N)?: n Add a new reservation Guest type: E (employee), V(VIP), or O (other)? x Guest type: E (employee), V(VIP), or O (other)? o First Name: 12 First name must consist of letters only! First Name: Billy Last Name: 12 Last name must consist of letters only! Last Name: Zhao Gender: 1 Gender should be Male or Female! Gender: M Room Type (S, D, L)? x Room type must be S, D, or L! Room Type (S, D, L)? L Check in: 12 String was not recognized as a valid DateTime. Check in: 1/10/2019 Check out: 1/1/2019 Check out must be after 1/10/2017 Check out: 1/11/2019 Home Phone: 89 Improper number of numeric digits for a phone number. Home Phone: 8928883333 Mobile Phone: 89 Improper number of numeric digits for a phone number. Mobile Phone: 8976662333 Street Address: 232 E Spring City: Chicago State: ii II is not a U.S. state! State: IL Zip: 232232 Zip should consist of 5 digits! Zip: 23223 Guest Mr. Zhao, Billy 232 E Spring, Chicago, IL 23223 (892)888-3333, (897)666-2333, 1 nights, Luxury Discount: 0% Room Charge: $239.00 Tax: $11.95 Total: $250.95 Do you want to quit (Y/N)?: y Thank you for using the CPH Reservation System!
Answered 1 days AfterNov 20, 2021

Answer To: Introduction to Business Programming BUS-ADM 810 Development of Web-Based Solutions Assignment 5...

Neha answered on Nov 21 2021
112 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here