2
Answers

functions in c#

hassaan akhatr

hassaan akhatr

11y
1.3k
1
Write a program in c# that computes and displays the charges for a person's hotel stay. First, the program should ask if the person
hired a room in hotel or he/she here for just dinning. If the person was a resident of hotel, the following data should be entered:
1. The number of days spent in the hotel
2. The daily rate
3. Charges for hotel services (internet, etc.)
4. Tax percentage
The program should ask for the following data if the patient was here for dinning:
1. Charges for hotel services (internet, etc.)
2. Tax percentage
The program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments
for the hotel resident's data, while the other function accepts arguments for hotel's dinning information. Both functions should
return the total charges. Write your main function and test the functionality of your application.
Answers (2)