Skip to content

sancruz-dev/dotnet-hotel-hosting

Repository files navigation

Challenge: Hotel Hosting System

.NET

Context

You have been hired to build a hosting system that will be used to make a reservation in a hotel. You will need to use the person class, which represents the guest, the suite class, and the reserve class, which will make a relationship between them.

Your program should correctly calculate the values of the reserve class methods, which will need to bring the amount of guests and the daily rate, granting a 10% discount on if the reserve is for a period longer than 10 days.

rules and validations

  1. It should not be possible to make a reserve of a suite with a capacity of a capacity of guests. Example: If it is a suite capable of hosting 2 people, then when you pass 3 guests you should return an exception.
  2. The method obtains the reserve class shall be returned to return the total amount of guests, while the calculating method of value shall return the daily rate (reserved days x daily value).
  3. If a reservation is made equal to or greater than 10 days, a 10% discount on the daily rate shall be granted.

Class Diagram Hotel.png

About

Challenge to develop a Hotel Hosting system.

Topics

Resources

Stars

Watchers

Forks

Languages