Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C + + program for a local movie theater to calculate its profit from ticket sales. At a local movie theater, the price

Write a C++ program for a local movie theater to calculate its profit from ticket sales.
At a local movie theater, the price of an adult ticket is $10.00, and a child's ticket is $6.50. The movie distributor
keeps 80 percent of the revenue earned from ticket sales. The remaining 20 percent goes to the movie theater.
Write a program that calculates the theater's gross ticket sales, net box office profit, and the amount paid to the
distributor for a movie. The program should ask for the Name of the movie and how many adult and child
tickets were sold.
REQUIRED:
Before you start coding, complete the program development sheet provided at the end.
Use integer and double as the data types when appropriate in your solution.
Declare only one constant PERCENT_PROFIT and set it equal to 80%, compute other value using
subtraction.
Match the input/output EXACTLY with what is provided below down to every blank space and line.
Each dollar amount should have two digits after the decimal point. Hint: use setprecision() and fixed.
Assume the movie title will be one word (i.e., Alien, Jaws, Godfather, Rocky, etc.).
Not allowed to hardcode prices or percentages in your calculations

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

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions