Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

With the use of 1 Dimensional attays, write a c program that welcomes the user to four seasons resort The resort has asked you

With the use of 1 Dimensional attays, write a c program that welcomes the user to "four seasons resort "

The resort has asked you to develop a system that will allow customers to book their

aocommodations and output the customer estimated bill for their small resort.

1 The program should prompt the users to enter the number of adults and children that is in their

party and to read the value

The program should allow the user to book as many families as possible.

However the program batch processes five family in one go and stores their custom bill in array

called custBill[5]:

The program should prompt the user to enter the number of nights cach family will stay at the

resort.

Allow the program to prompt user to enter the season in which they will be staying There are

three seasons January to April, May to July, September to December.

The program should ask the user to select the room type for the adults and then for the children.

Which is presented on a menu or list, room type includes; Garden View- Deluxe,Ocean View Suite,

Standard View- .

The rates for each room is given as follows:

Garden Vien-Deluxe

If the user selects Garden View the program should ask the user to enter the number of garden

view rooms and read the input.

It also asks the user to enter the number of occupancy types .The occupancy type may be

double or single and the program reads the input.

The customer bill is calculated as follows: if the season is between January to April and the

oocupancy is equal to one then the customer bill is equal to the number of nights times the

number of garden rooms times 25,000.

If the season is equal to January to April and the occupancy type is equal to two then the

customer bill is equal to the number of nights times the number of Garden Room times 34000.

If the season is equal to May to July and the occupancy is equal to one then the customer bill is

equal to the number of nights times, the number of Garden Room times 25,000 + 15% increase

of the garden room single occupancy.

If the season is equal to May June and the occupancy type is equal to two then the customer

bill is equal to the number of nights times the number of Garden View room times 34,000 + 15%

increase for double occupancy Garden View rooms,

If the season is equal to September to December and the occupancy is equal to single, then the

customer bill is equal to the number of nights times the number of Garden View room times

25,000 - 15% decrease on Garden View rates for single occupancy.

the season is equal to September to December and the occupancy is equal to double the

customer bill is equal to the number of nights times the number of garden rooms -a 12%

decrease in double occupancy Garden View rooms.

Ocean View Rooms

If the user selects Ocean View the program asks the user to enter the number of Ocean View

rooms.

The program prompts the user to enter the number of occupancy type occupancy type may be

double or single and read the input.

The customer bill is calculated as follows:

If the season is between January to April and the occupancy is equal to one then the customer

bill is equal to the number of nights times the number ofOcean View times 35000

If the occupancy is equal to double then the customer bill is equal to the number of nights times

the number of ocean view rooms times 450000

If the season is equal to May to July and the occupancy is equal to one then the customer bill is

equal to the number of nights times the number of Ocean View Room times 25,000 + 15%

increase of the garden room single occupancy. [2 marks]

The Standard View

If the standard view room is chosen, the customer bill is the number of nights times the

number of standard rooms times 18000 regardless of the season.

Output the overall total of the number of children that would be present at the hotel for the

month of January -December.

Output the average customer bill

Output the customer's final bill.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 23rd International Conference Dexa 2012 Vienna Austria September 2012 Proceedings Part 1 Lncs 7446

Authors: Stephen W. Liddle ,Klaus-Dieter Schewe ,A Min Tjoa ,Xiaofang Zhou

2012th Edition

3642325998, 978-3642325991

More Books

Students also viewed these Databases questions

Question

1. Describe the power of nonverbal communication

Answered: 1 week ago