Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started