Question
Need help with this C++ Program please. A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to
Need help with this C++ Program please. A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the distributor. Write a program that calculates a theaters gross and net box ofce prot for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $6.00 and a childs ticket is $3.00.) It should display a report similar to the following:
Assume the theater keeps 20 percent of the gross box ofce prot.
Please enter the name of the movie: Titanic How many ADULT tickets sold: 30 How many CHILD tickets sold: 10 Movie Name: Titanic Adult Tickets Sold: 30 Child Tickets Sold: 10 Gross Box Office Profit: $210.00 Amount Paid to Distributor: $168.00 Net Box Office Profit: $42.00 To generate the above kind of output, you can use instructions similar to the one below. Please note the variables in your program might be different from the ones shown below. cout << "Movie Name: " << movieTitle << endl; cout << "Adult Tickets Sold:" << setw(4) << adultTix << endl; cout << "Child Tickets Sold:" << setw(4) << childTix << endl; cout << fixed << showpoint << setprecision(2); cout << "Gross Box Ofce Prot: $" << gross << endl; cout << "Amount Paid to Distributor: $" << distributor << endl; cout << "Net Box Ofce Prot: $" << net ;
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