Question: C++ Project For this project, you will create a program that calculates the number of possible individual-sale tickets for the Broadway play Hamilton in the
C++ Project
For this project, you will create a program that calculates the number of possible individual-sale tickets for the Broadway play "Hamilton" in the Richard Rodgers Theater in New York that has a maximum seating capacity of 1,319. The program is intended for The theater ticketing agents. The agent should be prompted for the number of group ticket holders and for the number of house ticket holders (reserved for the authors, producers, cast, theater owners, etc). The program should add together these two numbers and subtract them from the seating capacity, then display the total as the number of available tickets for individual sales. Finally, the program should display the percentage of tickets held by each group (group sales, reserved house ticket holders and individual sales).
Minimum Requirements:
1. The main function should create an object of the tickets class and call each of the functions of the tickets class.
2. Create a class called tickets to calculate available tickets. This class must include the following functions:Create a function for the ticket class that will perform these calculations:
a.Total Number of available tickets for individual sales
b.Percentage of individual sales
c.Percentage of group ticket sales
d.Percentage of reserved house ticket holders
For an extra challenge, create more than one function for this: one function to take in the numbers and another to do the calculation.
Create a function to display the results of the calculation by displaying the contents of a private class variable that holds the calculation results. Note that displaying the results cannot be in the same function that performs the calculation. They must be in separate functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
