Question: Using C# writeProgram called motelregistration Include classes, objects ,arrays ,loops and exceptions where and if necessary Using c# and fairly simple and organized code the

Using C# writeProgram called motelregistration

Include classes, objects ,arrays ,loops and exceptions where and if necessary

Using c# and fairly simple and organized code the program should prompt a user for their name, Last name, date of booking, checking out date , number of guests, number of children, number of adults ,room type, room size and coupon code. prompt for added benefits such as VIP ,spa usage or all inclusive. Payment method ( visa or mastercard)

Display the name of the Motel

Display the booking date

rate per guest = $250 for children and $450 per adult

if number of guest is 5-10 people then standard room, if higher than 10-15then large room, if guest is 10-20 than deluxe room. if above 20 propt an error message saying too large

rates for added benefits: VIP= $200, spa usage = $100 and all inclusivce = $500

if the user enters anything other than visa or Mastercard then display an error message

IF coupon code provided is XBEC1 Then 10% discount, (the user should enter null if there is no code)

Display total

display total with added benefits

display total after discount

Display the payment method user selected

Display thank you message for choosing this hotel

ask whether or not they would like to refill the form if yes then repeat the program if no then the program should end.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres an example C program that implements the requirements you described csharp using System namespace MotelRegistration class Program static void Mainstring args string motelName ABC Motel ConsoleWr... View full answer

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 Programming Questions!