Question: Submit your Assignment8.cpp , Movie.cpp, Movie.h, seatAvailability.dat, a... WRITE CODE IN C++ ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ##############################
Submit your Assignment8.cpp , Movie.cpp, Movie.h, seatAvailability.dat, a...
WRITE CODE IN C++



############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ############################## ##############################
seatPrices.dat
12.50 12.50 12.50 12.50 10.00 10.00 10.00 10.00 8.00 8.00 8.00 8.00 5.00 5.00 5.00
Design a Movie class that can keep track of the number of seats available in a movie theater. The Movie class should have a two-Dimensional array, which has 15 rows and 30 columns for all the seats available in the theater, also an array of double to keep track of the price of tickets for each row. Each row has a different price. Use the following UML class diagram to design the class Movie NUMROWS:static const int 15 NUMCOLUMNS: static const int30 -seats[NUMROWS][NUMCOLUMNS]: char - price[NUMROWS: double -seatsSold int totalRevenue double +Movie ) requestTickets(seatNum:int, requestedRow:int, startingSeatNum:int): bool +purchaseTickets(seatNum:int, requestedRow:int, startingSeatNum:int): void getTotalRevenue): double +getSeatsSold): int +getPrice(row:int): double +getSeat (row:int, column:int):char +printTickets(seatNum:int, requestedRow:int, startingSeatNum:int) void +displaySeats() void +displaySalesRepo) void Program requirements and/or constraints: You will need to create three files Movie.h header file and Movie.cpp implementation file. In addition, you will need to create Assignment8.cpp file with a main function Design a Movie class that can keep track of the number of seats available in a movie theater. The Movie class should have a two-Dimensional array, which has 15 rows and 30 columns for all the seats available in the theater, also an array of double to keep track of the price of tickets for each row. Each row has a different price. Use the following UML class diagram to design the class Movie NUMROWS:static const int 15 NUMCOLUMNS: static const int30 -seats[NUMROWS][NUMCOLUMNS]: char - price[NUMROWS: double -seatsSold int totalRevenue double +Movie ) requestTickets(seatNum:int, requestedRow:int, startingSeatNum:int): bool +purchaseTickets(seatNum:int, requestedRow:int, startingSeatNum:int): void getTotalRevenue): double +getSeatsSold): int +getPrice(row:int): double +getSeat (row:int, column:int):char +printTickets(seatNum:int, requestedRow:int, startingSeatNum:int) void +displaySeats() void +displaySalesRepo) void Program requirements and/or constraints: You will need to create three files Movie.h header file and Movie.cpp implementation file. In addition, you will need to create Assignment8.cpp file with a main function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
