Question

In: Computer Science

Instructions: A movie theater only keeps a percentage of the revenue earned from ticket sales. The...

Instructions: A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a program that calculates a theater’s gross and net box office profit for a night. The program should ask for the name of the movie, and how many adults and child tickets were sold. The price of an adult ticket is $10.00 ad a child ticket is $6.00.) It should display a report similar to


Movie Name: “Wheels of Fury”

Adult Tickets Sold: 382

Child Tickets Sold: 127

Gross Box Office Profit: $4582.00

Net Box Office Profit: $916.40

Amount Paid to Distributor: $3665.60


program used is c++

Solutions

Expert Solution

#include <iostream>
#include <iomanip>
#include <string>

using namespace std;

int main() {
   string name;
   int adults, children;
   cout << "Enter the name of the movie: ";
   getline(cin, name);
   cout << "Enter how many Adult tickets were sold: ";
   cin >> adults;
   cout << "Enter how many Child tickets were sold: ";
   cin >> children;
   double total = (adults*10) + (children*6);
   double distributor=0.8*total;
   cout << setprecision(2) << fixed;

   cout << "\nMovie Name: \"" << name << "\"" << endl;
   cout << "Adult Tickets Sold: " << adults << endl;
   cout << "Child Tickets Sold: " << children << endl;
   cout << "Gross Box Office Profit: $" << total << endl;
    cout << "Net Box Office Profit: $" << (total - distributor) << endl;
   cout << "Amount Paid to Distributor: $" << distributor << endl;
   return 0;
}


Related Solutions

To conduct an experiment, a movie theater increased movie ticket prices from $9 to $10 and...
To conduct an experiment, a movie theater increased movie ticket prices from $9 to $10 and measured the change in ticket sales. The theater then gathered data over the following month to determine whether the price increase was profitable. Assume total costs to the theater are the same, whether the price of a ticket is $9 or $10. In order for the ticket price to have been profitable over the month, the elasticity of demand for movie tickets must be...
XYZ operates a movie theater. A movie ticket is $16.00 per ticket, and costs nothing
  XYZ operates a movie theater. A movie ticket is $16.00 per ticket, and costs nothing. On average 40% of the customers will buy a soda ($6 each, cost $1); 60% will buy food ($6 average price with a cost of $2). The fixed costs are $387,600. Calculate the break-even quantity and $sales for tickets, soda and food(10 points)   The theater wishes to make $96,900 profit. Calculate the target profit quantity and sales for tickets, soda and popcorn (10 points)...
Disney's Hannah Montana: The Movie opened in April 2009. The ticket sales revenue ($) for a...
Disney's Hannah Montana: The Movie opened in April 2009. The ticket sales revenue ($) for a sample of theaters is below. Use it to answer/do the following. 20,200 8,350 10,750 13,900 13,185 10,150 7,300 6,240 4,200 21,400 (a) Estimate the average ticket sales revenue. (b) Develop a 90% confidence interval for the mean in (a). (c) Develop a 95% confidence interval for the mean in (a). (d) Develop a 99% confidence interval for the mean in (a). (e) If ticket...
QuadPlex Cinema is the only movie theater in Idaho Falls. The nearest rival movie theater, the...
QuadPlex Cinema is the only movie theater in Idaho Falls. The nearest rival movie theater, the Cedar Bluff Twin, is 35 miles away in Pocatello. Thus QuadPlex Cinema possesses a degree of market power. Despite having market power, QuadPlex Cinema is currently suffering losses. In a conversation with the owners of QuadPlex, the manager of the movie theater made the following suggestions: “Since QuadPlex is a local monopoly, we should just increase ticket prices until we make enough profit.” a....
Problem #4 – Logical Operators: Movie Ticket Price The local movie theater in town has a...
Problem #4 – Logical Operators: Movie Ticket Price The local movie theater in town has a ticket price of $12.00. But, if you are a senior (55 and older), or are under 10, or are seeing a matinee which screens from 3 pm to 5 pm, you get the discounted price of $7.00, nice! Hint 1: "55 and older" is INCLUSIVE Hint 2: under 10 is EXCLUSIVE Hint 3: the range 3 to 5 is INCLUSIVE Hint 4: limit 1...
Customers arrive at a movie theater at the advertised movie time only to find that they...
Customers arrive at a movie theater at the advertised movie time only to find that they have to sit through several previews and prepreview ads before the movie starts. Many complain that the time devoted to previews is too long. A preliminary sample conducted by The Wall Street Journal showed that the standard deviation of the amount of time devoted to previews was four minutes. Use that as a planning value for the standard deviation in answering the following questions....
Customers arrive at a movie theater at the advertised movie time only to find that they...
Customers arrive at a movie theater at the advertised movie time only to find that they have to sit through several previews and prepreview ads before the movie starts. Many complain that the time devoted to previews is too long. A preliminary sample conducted by The Wall Street Journal showed that the standard deviation of the amount of time devoted to previews was four minutes. Use that as a planning value for the standard deviation in answering the following questions....
Customers arrive at a movie theater at the advertised movie time only to find that they...
Customers arrive at a movie theater at the advertised movie time only to find that they have to sit through several previews and pre-preview ads before the movie starts. Many complain that the time devoted to previews is too long.† A preliminary sample conducted by The Wall Street Journal showed that the standard deviation of the amount of time devoted to previews was 6 minutes. Use that as a planning value for the standard deviation in answering the following questions....
A movie theater has at most 90 seats available. Each adult movie ticket costs $14, and...
A movie theater has at most 90 seats available. Each adult movie ticket costs $14, and each child movie ticket costs $8. To make a profit, the theater must bring in more than $852 in ticket sales per show. A) In terms of A and C, write an inequality that represents the restriction on total occupancy. B) In terms of A and C, write an inequality that represents the restriction on total ticket sales. C) Make a graph that represents...
In Python Suppose there is a movie theater who charges ticket based on ages. Less than...
In Python Suppose there is a movie theater who charges ticket based on ages. Less than 3 years old, free; between 3 to 12, $10; more than 12 years old, $15. Please design a program with loop to, 1) Ask the name then age of the audience, 2) Based on audience's input, tell the audience (with the person's name) how much is the ticket, 3) Stop the program when type in 'quit' in your program.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT