Question: Dont use global variables for the seating chart 9:40 PM instructure-uploads.s3.amazonaws.com T-Mobile? 2. 16 points) Write a program that can be used by a small
9:40 PM instructure-uploads.s3.amazonaws.com T-Mobile? 2. 16 points) Write a program that can be used by a small theater to sell tickets for performances. The theater's auditorium has 15 rows of seats with 20 seats in each row CS1-Spring 2018 EAmbroslo Step 1 The program should have a FUNCTION showSeats that displays a screen that shows which seats are available and which are taken. Seats that are taken should be represented by a # symbol and seats that are available should be represented by a . symbol. The first thing your program should do is initialize all of the seats to available () and display the seating chart. (HINT: The seating chart should be a two dimensional array.) Here is an example of the seating chart with all seats initialized to available Seats: 01 2 3 456789 10 11 12 13 14 15 16 17 18 19 Row 0 Row 1' Row 2 Row 3 Row 4 Row 5 Row 6' Row 7 Row 8 Row 9 Row 10 Row 11 Row 12 Row 13 Row 14 Step 2 Each row in the auditorium has a different ticket price. So tickets in row 0 may be 5.00 each and tickets in row 1 may be 10.00 each. Your program should have a FUNCTION readPrices that reads the ticket price of each row from an input file called prices.txt. The ticket price for each row should be stored in a one dimensional array Step 3 Your program should have variables tracking the total number of tickets sold and the total revenue for all tickets sold
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
