A dramatic theater has three seating sections, and it charges the following prices for tickets in each section: section A seats cost $20 each, section B seats cost $15 each, and section C seats cost $10 each. The theater has 300 seats in section A, 500 seats in section B, and 200 seats in section C. Design a program that asks for the number of tickets sold in each section and then displays the amount of income generated from ticket sales. The program should validate the numbers that are entered for each section. please do the flowchart in c++
A dramatic theater has three seating sections, and it charges the following prices for tickets in each section: section A seats cost $20 each, section B seats cost $15 each, and section C seats cost $10 each. The theater has 300 seats in section A, 500 seats in section B, and 200 seats in section C. Design a program that asks for the number of tickets sold in each section and then displays the amount of income generated from ticket sales. The program should validate the numbers that are entered for each section. please do the flowchart in c++
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
A dramatic theater has three seating sections, and it charges the following prices for tickets in each section: section A seats cost $20 each, section B seats cost $15 each, and section C seats cost $10 each. The theater has 300 seats in section A, 500 seats in section B, and 200 seats in section C. Design a program that asks for the number of tickets sold in each section and then displays the amount of income generated from ticket sales. The program should validate the numbers that are entered for each section.
please do the flowchart in c++
i also shared my source code so flowchart should match with source code

Transcribed Image Text:Los Rios Hub
A Assignment #7 (0
O 404 Not Found
E Untitled documen
G a-Google Search x
E Untitled documen
LovingSienna Dov x
O UnluckyWooden x
+
replit.com/@uhyytu/LovingSienna Download#main.cpp
A Guest
uhyytu / LovingsiennaDownload
• Run
8+ Invite
main.cpp x
Console
Shell
Files
1.
#include <iostream>
> clang++-7 -pthread -std=c++17 -o main main.cpp
> . /main
using namespace std;
int numberofsectionA, numberofsectionB,
numberofsectionc, amount;
int main() {
2
C- main.cpp
Enter the number of tickets sold of section A:50
DI
4.
Enter the number of tickets sold of section B:100
Enter the number of tickets sold of section C:40
5
cout << "Enter the number of tickets sold in
the amount of income generated from ticket sales is 2900
section A:";
cin >> numberofsectionA;
6
7
cout << "Enter the number of tickets sold in
section B:";
8
cin >> numberofsectionB;
9
cout << "Enter the number of tickets sold in
section C:";
cin >> numberofsectionC;
if (numberofsectionA <= 300){
if (numberofsectionB <= 500){
10
11
12
13
if (numberofsectionc <= 200){
14
15
}
16
17
}
18
amount = numberofsectionA * 20 + numberofsectionB
* 15 + numberofsectionc *10;
19
20
cout<< "the amount of income generated from ticket
sales is:" « amount <<endl;
21
22
23
}
vi 12:49
II
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education