Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

As a programmer, you are required to develop a program to track their business daily for an unknown number of guests. Design a program that

As a programmer, you are required to develop a program to track their business daily for an unknown number of guests. Design a program that requires the person in charge to insert the details of the guest.

  1. Room & Suites Code based on the following table
  2. Number of guest
  3. Length of stay (day)

The program will stop until the user enters N.

Table 1 Room & suite price price

Room & Suites Name

Room & Suites Code

Room & Suites Cost (RM)

Executive Pool Villa

E

684.00

Premium Pool Villa

P

747.00

Sky Pool Villa

S

684.00

Royal Suite

R

3371.00

Imperial Suite

I

4010.00

The program should be able to analyse:

  1. Total guest for each room category
  2. Average guest for all room category
  3. Percentage for each room category
  4. The most popular room and unpopular room
  5. Total income per room
  6. Total income for all room

Your program should contain selection and repetition control structure. You need to declare suitable functions to calculate the analysed values.

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

Step: 3

blur-text-image

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

=+Have they changed the way employees view IP?

Answered: 1 week ago