The document describes a program to sort hotel guest data by room type using a SWAP statement. The program inputs guest details like name, address, room type, rate and stores them in arrays. It then displays the data before and after sorting the arrays using a SWAP statement to reorder the elements based on the room type field. The sorted data and total billing amount is then displayed.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
21 views
Modul Ke - 8 Pemrograman
The document describes a program to sort hotel guest data by room type using a SWAP statement. The program inputs guest details like name, address, room type, rate and stores them in arrays. It then displays the data before and after sorting the arrays using a SWAP statement to reorder the elements based on the room type field. The sorted data and total billing amount is then displayed.