Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve in C++ (Please include comments) C++I. LAB. It is expected that after you finish all programming activities proposed in the Study Guide, for week

Solve in C++ (Please include comments) image text in transcribed
image text in transcribed
C++I. LAB. It is expected that after you finish all programming activities proposed in the Study Guide, for week 3 and 4, you will be able to create a solution to the following problem and implement it in CH+code. Theater Seating Prices. PROBLEM. Write a C++ program that will receive as inputs the number of seats sold per show per class. The program will allow you to see the highest and lowest sales per show per class. Example: Test your program with the following data for show 1: The user must enter the number of seats per class and per show. In this example: 30, 25, and 98. The program will calculate the sales per seat class and per show as indicated in the column sales. For show 1 the program must calculate the highest sales per show per class. In this example is $833. The program must calculate the lowest sales per show per class. In this example $250. TEST YOUR PROGRAM. Test your program with the data given for show1, show2, and show3. The data for two additional shows are shown in the following tables: When your program starts the following Main menu is displayed: Main menu. 1. Enter number of seat sold per class/show 2. Show highest sales per seat/class 3. Show lowest sales per seat/class 4. Exit program Enter your selection: Implement each of the tasks indicated in the Main menu. TESTING THE PROGRAM. - Run the program. - Main menu is displayed. - Select option 1 and press enter. - Enter the number of seats sold per class for show 1. After finishing these entries, the program displays Main menu. - Select option 2 and press enter. The program must show the highest sales per seat/class. For show 1 the output must be: $833. After showing this result the program displays the Main menu. - Select option 3 and press enter. The program must show the lowest sales per seat/class. For show 1 the output must be: $250. After showing this result the program displays Main menu. - Select option 1 and press enter. - Enter the number of seats sold per class for show 2. After finishing these entries, the program displays Main menu. - Select option 2 and press enter. The program must show the highest sales per seat/class. For show 2 the output must be: $1000. After showing this result the program displays the Main menu. - Select option 3 and press enter. The program must show the lowest sales per seat/class. For show 2 the output must be: $306. After showing this result the program displays Main menu. - Select option 1 and press enter. - Repeat the whole process with data for show 3. - After finishing with the procedure with data for show 3 the program displays Main menu. Select option 4 to terminate the program. Your program must provide prompts like: - Please, enter the number of seats for class X : - The highest sale for this show is the class X with a total of: $xx.xx. - The lowest sale for this show is the class X : $x xxx.xx

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

Students also viewed these Databases questions

Question

5. If yes, then why?

Answered: 1 week ago

Question

6. How would you design your ideal position?

Answered: 1 week ago