in this code i want the changes made in calculate function
to be reflected in the vectord made in classes show1 and show2… how to do that
problem statement is:
Problem Statement: – In a movie theatre 2 shows are running. You are given available seat of both show. There are some groups who want to book the tickets so first ask the show no. and then check whether seats are available or not if available then book their seats else ask them to enter seats again.
After each successful booking print total available seats and total booked seats.
Show 1:
Available seat:- A1, A2, A3, A4, A5, A6, A9
Show 2:
Available seat:- A1, A2, A4, A5, A6, B1, B3, B4, B5, B6, B7
Group1: -
Enter show no:- 1
Enter seats:- A1, A4
Print:- “Successfully booked”
Available seat:- A2, A3, A5, A6, A9
Booked Seat:- A1, A4
Group2:-
Enter show no:- 1
Enter seats:- A1, A3
Print : - seat A1 not available please try again.