Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I posted this question previously, but did not get an appropriate answer and Che

ID: 3658723 • Letter: I

Question

I posted this question previously, but did not get an appropriate answer and Chegg.com would not allow me to rate the post. Per Anna at Chegg customer service, I am re-posting the question. I've written most of the program, but encountering two problems: 1.) If I purchase a ticket in Row 1 Seat 1, it will display the price of row 2. 2.) If I purchase the above ticket, the seating chart places an '*' in Row 2 Seat 2 instead of Row 1 Seat 1. What corrections need to be made? Write a program that can be used by a small theater to sell tickets for performances. The theater

Explanation / Answer

Starting your counters at 0, when there is no 0 row or 0 column can cause errors and make the code harder to follow. I see where later you specify (count + 1), that is just added work. I may have fixed the problems here: #include using namespace std; int Show_Menu (); void Show_Chart (); const char FULL = '*'; const char EMPTY = '#' ; const int rows = 15; const int columns = 30; char map [rows][columns]; double price; int total = 0; int seat = 450; int seat2 = 0; int Quit = 1; int main () { const int Num_Rows = 15; int price [Num_Rows]; int row2, column2, cost; int answer; for (int count = 1; count