Logo 
Search:

C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

Write a program to read a guest's name, type of room, number of days stayed and mode of payment

  Asked By: Nyza    Date: Jul 22    Category: C++ Programming    Views: 749
  

Question
The SZK Hotel has four types of rooms. The rate for each room is stated in the following
table.:
Type of Room Rate Per Day
Superior RM 175
Deluxe RM 155
Standard RM120
Economy RM 100

Each guest must pay additional 5% for the government tax. If the guest uses a credit card for the payment, he is given a 20% discount.


Write a flowchart and complete C++ program that includes the following statements.
a) Read a guest's name, type of room, number of days stayed and mode of payment.

b) Calculate the government tax, discount given if the mode of payment is by credit card
and the total charges for the guest.

c) Print a receipt for the guest using the following format.
**********************************************************************************
WELCOME TO SZK HOTEL
*****************************************************
Guest Name : xxxxxxxxxxx
Type of Room : xxxxxxx
Number of day(s) : xxx
Payment (RM) : xxxx.xx
Thank you for staying with us. Please come again.

Can u help me to write this program? Tq.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 




Tagged: