Using C# writeProgram called motelregistration Include classes, objects ,arrays ,loops and exceptions where and if necessary Using
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 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.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill