Avatar billede seifmo3ed Nybegynder
24. november 2005 - 23:43 Der er 1 kommentar

omhandler blandt andet programmering i c++ og design

Project Title: Hotel Booking System
Problem Statement:

A small motel has just purchased a computer for its new automated booking system. You have been asked to develop the new system. The system should be able to make room bookings, issue bills for residents, report room availability, and report total income. 

Project Rules:

The capacity of the motel is 10 rooms.
There are two types of rooms: two-bedroom (rooms 1-3) and one-bedroom (rooms 4-10)
Price for two-bedroom is $200/night and the price for one-bedroom is $100/night.
The number of future residents making bookings is unknown.
The resident should choose the type of room and period of stay.
Any booking for any room type should be made for a maximum of three nights.
When there are no two-bedrooms available ask the resident if willing to go for the one-bedroom and vice versa.
If there are no rooms available, print a message to inform the resident of unavailability.
Never book a room that has been booked to another resident.
For each room booked, the program should print a bill indicating the resident name, room number, room type, room price per night, number of nights, and total price.
The program should also report the total sales per room type in a table format.
Make any assumptions as necessary.

Project Methodology:
The program should prompt the resident for room type: 1 for one-bedroom and 2 for two-bedroom.
Use a single-subscripted array to represent the room chart of the motel. Initialize all the elements of the array to 0 to indicate that all rooms are available. As each room is booked set the corresponding element of the array to 1 to indicate that the room is no longer available.
The program should make use of functions whenever possible. Projects without functions will not be accepted even if the program is complete and solves the problem.
Avatar billede areon Nybegynder
26. november 2005 - 19:40 #1
I would like to receive more information about the project. Please contact me on tsorensen@nightlife.bg
best regards
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester