Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this lab assignment, you will be writing full programs. Here is where youre going to use an IDE of your choice (or Linux if

For this lab assignment, you will be writing full programs. Here is where youre going to use an IDE of your choice (or Linux if youd like). The naming scheme for your individual source code files should be something related to the problem number (e.g. program2.cpp or p2.cpp is okay, Source.cpp is not.) When you are finished typing out a program, you will need to test and debug it to make sure it is working. ((( C++ PROGRAMS CODING LANGUAGE)))

5. A movie theater only keeps 80 percent of the revenue earned from ticket sales. The other 20 percent goes to the distributor. Write a program that calculates a theater's gross and net box office revenue 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 $10 and a child's ticket is $6) (Hint: Use setw() for the monetary output.)

Sample Run:

Welcome to the Movie Report Program. Enter the name of the movie: The Matrix Enter how many Adult tickets were sold: 382 Enter how many Child tickets were sold: 127

Generating Report...

Report for The Matrix: Movie Name:

Adult Tickets Sold: Child Tickets Sold: Gross Box Office Revenue: Amount Paid to Distributor: Net Box Office Revenue:

The Matrix 382 127 $ 4582.00 - $ 916.40 $ 3665.60

** For each program, use a block comment at the beginning of your source code to clarify and explain what it is that the program is about. Example to follow. Also, line comment each step, or logical grouping of steps, in a pseudocode fashion

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 Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

4. Describe cultural differences that influence perception

Answered: 1 week ago