Pascal programming

Sigchi4life
Category:
Programming
Price: $5 USD

Question description

Problem Solving and Programming

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. 2.Design and execute a trace table that accepts data for reservation for that company. Data should include the names of the visitors, early bird option, package type, status and duration of stay for the visitors. The table should trace the cost, discount, final cost for each visitor and overall total cost for the company. The number of registered guest and available rooms should be counted. The table should have at least 10 iterations.

Programme Implementation

3.Using the programming language Pascal, write a program code to implement the algorithm in (1).


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: UC Berkeley
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1831 tutors are online

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