How do I write this code using OOPS approach

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

Enter show no:- 1
Enter seats:- A1, A3

Print : - seat A1 not available please try again.

Write a C++ code that uses OOPS approach.

What I have tried:

I wrote the code in C using linked list and it's working fine....I just need a C++ code that uses OOPS approaches because that is the demand of the question. Please help me

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!