Question
In C++ and in Microsoft Visual Studio Please. The last page of this document is a Program Development Sheet, which you can use as a
In C++ and in Microsoft Visual Studio Please.
The last page of this document is a Program Development Sheet, which you can use as a way to design your program. You are encouraged to work on the Program Development Sheet before you start coding. The program development sheet is for you to think about the program design, which does not need to be submitted. Program Documentation & Style 1. Declare all constants and variables that your program uses at the beginning of your program. 2. Your program should include two types of comments. BE SPECIFIC! a. Header comments at the beginning of your program including lines with: - Your full name, course name, and class time - Program assignment number, file name (e.g., WitherspoonR_pgm2a.cpp) and due date - Purpose: a sentence or two explaining the purpose of the program - Input: a description of the input data needed by the program when you run it - Processing: a description of the processing (calculations) done by the program - Output: a description of the results (output) produced by the program b. In-line comments: There should be an in-line comment for each main step in your program. In general, this means at least one comment with each group of C++ statements that handle the input, the processing and the output steps of your program. 3. Use meaningful identifier names 4. Include clear prompts for the user about entering the data. 5. Include clear descriptions of the results when you display them. 6. Format your output neatly.
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.00. 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. Here is a sample of what your program should look like (in the Console window) when it is executed: a Enter the movie name: Wild How many adult tickets were sold: 382 How many children's tickets were sold: 127 Gross Ticket Sales: $ 4582.00 Theater Net Profit: $916.40 Amount Paid to Distributor: $3665.60 The last page of this document is a Program Development Sheet, which you can use as a way to design your program. You are encouraged to work on the Program Development Sheet before you start coding. The program development sheet is for you to think about the program design, which does not need to be submittedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started