Form1.vb* Stadium Seating Tickets Sold Enter number of tickets sold for each class of seats Class A: Form1.vb [Design]* X Class B: Class C: Calculate Revenue Clear Revenue Generated Class A Class B Class C Total Revenue: Exit X

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
icon
Related questions
Question

I used the code that was provided but I'm still not able to get the revenue to show up when I press calculate revenue.

File
Toolbox Data Sources
←
Visual Studio 2017 (2)
File Edit
View Window
Stadium Seating2 - Microsoft Visual Studio - Experimental Instance
Edit View Project Build
Debug Team Format
C
▼
Debug
Form1.vb*
✔
esc
2
Stadium Seating
Tickets Sold
Enter number of tickets sold for
each class of seats
Class A:
Class B:
Form1.vb [Design]* X
Class C:
Calculate Revenue
Output
Error List Output
Ready
30,994
1
I
F1
Q
A
2
☀
F2
W
Y
Clear
Class A:
Revenue Generated
Class B:
Class C:
#3
Tools Test
Any CPU
Total Revenue:
FEB
1
80
F3
▼
E
$
4
Exit
Analyze Window Help
Start
2
F4
R
0
%
5
Y
X
F5
T
di
< C
130,30
MacBook Air
6
F6
(((
Y
&
7
tv
F7
@ @Y! C
1125 x 645
@ Ⓡ
* 00
U
8
DII
F8
9
1
Transcribed Image Text:File Toolbox Data Sources ← Visual Studio 2017 (2) File Edit View Window Stadium Seating2 - Microsoft Visual Studio - Experimental Instance Edit View Project Build Debug Team Format C ▼ Debug Form1.vb* ✔ esc 2 Stadium Seating Tickets Sold Enter number of tickets sold for each class of seats Class A: Class B: Form1.vb [Design]* X Class C: Calculate Revenue Output Error List Output Ready 30,994 1 I F1 Q A 2 ☀ F2 W Y Clear Class A: Revenue Generated Class B: Class C: #3 Tools Test Any CPU Total Revenue: FEB 1 80 F3 ▼ E $ 4 Exit Analyze Window Help Start 2 F4 R 0 % 5 Y X F5 T di < C 130,30 MacBook Air 6 F6 ((( Y & 7 tv F7 @ @Y! C 1125 x 645 @ Ⓡ * 00 U 8 DII F8 9 1
Visual Studio 2017 (2) File Edit View Window
dium Seating2 - Microsoft Visual Studio - Experimental Instance
View Project Build Debug
dit
Team Tools
Debug
SEF 2
12
m1.vb*
Stadium Seating2
N345
2
SC
♥
110%
X Form1.vb [Design]*
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
D-
Error List Output
Ready
30,994
1
SUD Main()
F1
'declare variables
Q
Dim classA_tick As Integer
Dim classB_tick As Integer
Dim classC_tick As Integer
Dim total income As Double
Console.WriteLine("Ticket Sales Revenue")
'get input value from user
Console.Write(" Enter class A tickets:")
Console.ReadLine()
classA_tick =
Console.Write(" Enter class B tickets:")
classB_tick = Console.ReadLine()
Console.Write(" Enter class C tickets:")
Console.ReadLine()
classc_tick =
'calculate the total income
total_income = classA_tick * 15+ classB_tick* 12+ classc_tick * 9
'display class wise income
Console.Write("Class A:")
Console.Write(classA_tick)
Console.Write(" Class A:$")
Console.WriteLine(classA_tick * 15)
1 A
Test Analyze Window Help
Any CPU
Console.Write("Class B:")
Console.Write(classB_tick)
VBModule
Console.Write(" Class B:$")
Console.WriteLine(classB_tick * 12)
Console.Write("Class C:")
Console.Write(classc_tick)
Console.Write(" Class C:$")
Console.WriteLine(classc_tick * 9)
'display Total income
Console.Write("Total Revenue: $")
Console.Read()
Console.WriteLine(total_income)
2
F2
W
#
3
FEB
80
F3
E
FO
$
4
OOO
F4
Start II 3
R
67 5⁰
%
5
2
F5
T
اله
Ln 1
6
Main
MacBook Air
F6
Col 1
&
Y.
7
tv
F7
@ 1 C.
Ch 1
* 0
U
8
DII
F8
INS
O
9
1
Transcribed Image Text:Visual Studio 2017 (2) File Edit View Window dium Seating2 - Microsoft Visual Studio - Experimental Instance View Project Build Debug dit Team Tools Debug SEF 2 12 m1.vb* Stadium Seating2 N345 2 SC ♥ 110% X Form1.vb [Design]* 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 D- Error List Output Ready 30,994 1 SUD Main() F1 'declare variables Q Dim classA_tick As Integer Dim classB_tick As Integer Dim classC_tick As Integer Dim total income As Double Console.WriteLine("Ticket Sales Revenue") 'get input value from user Console.Write(" Enter class A tickets:") Console.ReadLine() classA_tick = Console.Write(" Enter class B tickets:") classB_tick = Console.ReadLine() Console.Write(" Enter class C tickets:") Console.ReadLine() classc_tick = 'calculate the total income total_income = classA_tick * 15+ classB_tick* 12+ classc_tick * 9 'display class wise income Console.Write("Class A:") Console.Write(classA_tick) Console.Write(" Class A:$") Console.WriteLine(classA_tick * 15) 1 A Test Analyze Window Help Any CPU Console.Write("Class B:") Console.Write(classB_tick) VBModule Console.Write(" Class B:$") Console.WriteLine(classB_tick * 12) Console.Write("Class C:") Console.Write(classc_tick) Console.Write(" Class C:$") Console.WriteLine(classc_tick * 9) 'display Total income Console.Write("Total Revenue: $") Console.Read() Console.WriteLine(total_income) 2 F2 W # 3 FEB 80 F3 E FO $ 4 OOO F4 Start II 3 R 67 5⁰ % 5 2 F5 T اله Ln 1 6 Main MacBook Air F6 Col 1 & Y. 7 tv F7 @ 1 C. Ch 1 * 0 U 8 DII F8 INS O 9 1
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education