- Home >
- Programming >
- Program Hotel Sea Side - Pascal
Program Hotel Sea Side - Pascal
Question Description
1. Develop an algorithm to keep track of the number of available rooms and the number of visitors. The program should calculate the cost of accommodation, any discounts that may apply, the final cost for each visitor and the overall total bill for the company.
The program should accept as input the name of one of the companies and the visitors’ information for that company. Accept the first name, last name, status (resident or non- resident) and duration of stay for each visitor and also prompt the user to state whether or not the visitor is an early bird.
The program should then display the name and the total amount that should be paid by the company, the number of registered guest and the number of available rooms. The program should also produce a listing of all the visitors for each package. Include in the list of names the final cost, discount amounts and room numbers assigned to each visitor.
This question has not been answered.
Create a free account to get help with this and any other question!
Similar Content
Epic of Gilgamesh
by Unknown
100 Side Hustles
by Chris Guillebeau
The Aftermath
by Rhidian Brook
Macbeth
by William Shakespeare
Jane Eyre
by Charlotte Brontë
The Elegant Universe
by Brian Greene
American Gods
by Neil Gaiman
Extreme Ownership - How US Navy SEALs Lead and Win
by Jocko Willink and Leif Babin
Z for Zachariah
by Robert C. O’Brien
Studypool values your privacy. Only questions posted as Public are visible on our website.
Brown University
1271 Tutors
California Institute of Technology
2131 Tutors
Carnegie Mellon University
982 Tutors
Columbia University
1256 Tutors
Dartmouth University
2113 Tutors
Emory University
2279 Tutors
Harvard University
599 Tutors
Massachusetts Institute of Technology
2319 Tutors
New York University
1645 Tutors
Notre Dam University
1911 Tutors
Oklahoma University
2122 Tutors
Pennsylvania State University
932 Tutors
Princeton University
1211 Tutors
Stanford University
983 Tutors
University of California
1282 Tutors
Oxford University
123 Tutors
Yale University
2325 Tutors