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++

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 10PE
icon
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

 

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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage