Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Follow link to see the code: https://repl.it/@jholst/composition-friend-static Please post the code for MovieTheater.cpp, MovieTheater.h and main.cpp which contains answers to the question above. Thank you

image text in transcribed

Follow link to see the code: https://repl.it/@jholst/composition-friend-static

Please post the code for MovieTheater.cpp, MovieTheater.h and main.cpp which contains answers to the question above. Thank you

4.1a Create a cancelTicket function in the MovieTheater class that takes in a ticket number. If the ticket is not a valid ticket number (e.g. less than the starting ticket number or greater than or equal to the next ticket number), the function will display an error message. If the ticket number is valid, the function will find the ticket in the soldTickets vector and set the status of the ticket to "cancelled" 4.1b Test the cancelTicket function in the main program. Try to cancel an invalid ticket number to see that you get the error message. Cancel a valid ticket, then print the ticket information using the kioskPrintTicket function to see that the status says "cancelled". 4.2a Create a ticketReport function in the MovieTheater class that first prints out all the sold "active" status ticket information, then prints out all the sold, "cancelled" status ticket information. 4.2b Test the ticketReport function in the main program. Make sure you have tickets in both active" and "cancelled" status before running this function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions