Question

In: Computer Science

•A theater owner agrees to donate a portion of gross ticket sales to a charity •The...

•A theater owner agrees to donate a portion of gross ticket sales to a charity

•The program will prompt the user to input:

−Movie name

−Adult ticket price

−Child ticket price

−Number of adult tickets sold

−Number of child tickets sold

−Percentage of gross amount to be donated

•Inputs: movie name, adult and child ticket price, # adult and child tickets sold, and percentage of the gross to be donated

•The program needs to:

1.Get the movie name

2.Get the price of an adult ticket price

3.Get the price of a child ticket price

4.Get the number of adult tickets sold

5.Get the number of child tickets sold

Solutions

Expert Solution

Below is commented program code solution for your problem.

#include<iostream>
using namespace std;
int main()
{
string Movie_name;
// Declare all variables
int Adult_ticket_price, Child_ticket_price;
int Number_of_adult_tickets_sold;
int Number_of_child_tickets_sold;
int Percentage_of_gross_amount_to_be_donated;

// Take input from user
cin >> Movie_name;
cin >> Adult_ticket_price;
cin >> Child_ticket_price;
cin >> Number_of_adult_tickets_sold;
cin >> Number_of_child_tickets_sold;
cin >> Percentage_of_gross_amount_to_be_donated;

// Get input and print result
cout << "movie name = " << Movie_name << "\n";
cout << "price of an adult ticket price = " << Adult_ticket_price << "\n";
cout << "price of a child ticket price = " << Child_ticket_price << "\n";
cout << "number of adult tickets sold = " << Number_of_adult_tickets_sold << "\n";
cout << "number of child tickets sold = " << Number_of_child_tickets_sold << "\n";


return 0;
}
I have also provided a image of code below along with the output.


Related Solutions

A theater owner agrees to donate a portion of gross ticket sales to a charity •The...
A theater owner agrees to donate a portion of gross ticket sales to a charity •The program will prompt the user to input: −Movie name −Adult ticket price −Child ticket price −Number of adult tickets sold −Number of child tickets sold −Percentage of gross amount to be donated •Inputs: movie name, adult and child ticket price, # adult and child tickets sold, and percentage of the gross to be donated •The program needs to: 1.Get the movie name 2.Get the...
•A theater owner agrees to donate a portion of gross ticket sales to a charity •The...
•A theater owner agrees to donate a portion of gross ticket sales to a charity •The program will prompt the user to input: −Movie name −Adult ticket price −Child ticket price −Number of adult tickets sold −Number of child tickets sold −Percentage of gross amount to be donated •Inputs: movie name, adult and child ticket price, # adult and child tickets sold, and percentage of the gross to be donated •The program needs to: 1.Get the movie name 2.Get the...
•A theater owner agrees to donate a portion of gross ticket sales to a charity •The...
•A theater owner agrees to donate a portion of gross ticket sales to a charity •The program will prompt the user to input: −Movie name −Adult ticket price −Child ticket price −Number of adult tickets sold −Number of child tickets sold −Percentage of gross amount to be donated •Inputs: movie name, adult and child ticket price, # adult and child tickets sold, and percentage of the gross to be donated •The program needs to: 1.Get the movie name 2.Get the...
The owner of a movie theater company would like to predict weekly gross revenue as a...
The owner of a movie theater company would like to predict weekly gross revenue as a function of advertising expenditures. Historical data for a sample of eight weeks follow. Weekly Gross Revenue ($1,000s) Television Advertising ($1,000s) Newspaper Advertising ($1,000s) 96 5 1.5 90 2 2 95 4 1.5 93 2.5 2.5 95 3 3.3 94 3.5 2.2 94 2.5 4.1 94 3 2.5 (a) Use α = 0.01 to test the hypotheses H0: β1 = β2 = 0 Ha: β1...
The owner of a movie theater company would like to predict weekly gross revenue as a...
The owner of a movie theater company would like to predict weekly gross revenue as a function of advertising expenditures. Historical data for a sample of eight weeks follow. Weekly Gross Revenue ($1,000s) Television Advertising ($1,000s) Newspaper Advertising ($1,000s) 96 5 1.5 91 2 2 95 4 1.5 93 2.5 2.5 95 3 3.3 94 3.5 2.3 94 2.5 4.1 94 3 2.5 (a) Use α = 0.01 to test the hypotheses H0: β1 = β2 = 0 Ha: β1...
The owner of a movie theater company would like to predict weekly gross revenue as a...
The owner of a movie theater company would like to predict weekly gross revenue as a function of advertising expenditures. Historical data for a sample of eight weeks follow. Weekly Gross Revenue ($1,000s) Television Advertising ($1,000s) Newspaper Advertising ($1,000s) 96 5 1.5 90 2 2 95 4 1.5 93 2.5 2.5 95 3 3.3 94 3.5 2.3 94 2.5 4.1 94 3 2.5 1. Use α = 0.01 to test the hypotheses H0: β1 = β2 = 0 Ha: β1...
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:...
In addition to cash contributions to charity, Dean decided to donate shares of stock and a...
In addition to cash contributions to charity, Dean decided to donate shares of stock and a portrait painted during the earlier part of the last century. Dean purchased the stock and the portrait many years ago as investments. Dean reported the following recipients: [The following information applies to the questions displayed below.] In addition to cash contributions to charity, Dean decided to donate shares of stock and a portrait painted during the earlier part of the last century. Dean purchased...
This is all one question: A theater uses the following table/sheet to manage ticket sales, which...
This is all one question: A theater uses the following table/sheet to manage ticket sales, which turned out to be a very bad practice. The manager of theater hires you to design a database to manage the ticket sale information.    TICKET-SALES (InvoiceNumber, CustomerID, ShowTitle, SeatType, SeatLocation, TicketPrice, CustomerName, CustomerCell, ShowTime, Director_of_Show) Note: A customer can purchase multiple seats in one order (with one InvoiceNumber). It is also the common sense that the price of a ticket/seat depends on the show,...
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)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT