Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

2. What efforts are countries making to reverse the brain drain?

Answered: 1 week ago