The singaporean bus has 7 rows (lettered from A to G) with 8 seats each row(numbered 1 through 8) Write a C++ program that allows users to enter a row and seat request until a sentinel value (both 0 values) is entered. If the row or seat number is invalid, issue an error message. Otherwise, determine whether the seat has already been reserved. If so, display an error message; if not, charge the user Php450.00 for a ticket and display a total of the user’s purchase. Accept continuous seat numbers until the user enters the sentinel value. When the user enters a sentinel, display the number of seats taken and the number of available seats in the bus. Use file streaming so that when the program terminates, the information is saved.
The singaporean bus has 7 rows (lettered from A to G) with 8 seats each row(numbered 1 through 8) Write a C++
Otherwise, determine whether the seat has already been reserved. If so, display an error message; if not, charge the user Php450.00 for a ticket and display a total of the user’s purchase.
Accept continuous seat numbers until the user enters the sentinel value. When the user enters a sentinel, display the number of seats taken and the number of available seats in the bus. Use file streaming so that when the program terminates, the information is saved.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 6 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)