Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question

The question is asking for me to "Design a modular program that asks how many tickets for each class (Class A with seat costs of 15$, Class B with seat costs of 12, and Class C with seat costs of 9$) and then display the amount of income generated from ticket sales across all classes.

I supplied a screenshot  below. I'm not sure what I'm doing wrong. 

 

File
AH
Extensions Window
Search Visual Studio (Ctrl+Q)
PythonApplication1
Edit
View
Project
Debug
Test
Analyze
Tools
Help
Select Startup Item
Live Share
Python 3.7 (64-bit)
ADMN
Lifecycle Events Thread: [1] MainThread
Stack Frame:
Process: [5900] python.exe
Python Programmin...Ischuh CIS-110.py
X
E def main):
def numberofTicketsA():
numberOf TicketsA = float(input ( " Enter the number of tickets sold for class A:"))
def numberofTicketsB ( ) :
numberOf TicketsB = float(input ( " Enter the number of tickets sold for class B:"))
def numberOfTicketsC ( ):
numberOfTicketsc = float(input (" Enter the number of tickets sold for class B:")).
print("-
def costA)
costA numberOfTicketsA 15
X
def costB()
costB= numberOfTicketsB 12
def costC()
costC numberOfTicketsć * 9
main)
def calculate Income (A, B, C):
incomeGEnerated = costA()+costB( ) +costC ()
calculateIncome ( costA, costB, costC)
print("Income generated from ticket sales is:",incomeGenerated)
print("
100 %
No issues found
nx Call Stack
Autos
Name
Lang
Search Depth:
Search (Ctrl+E)
main_.costA: 11
main_.calculatelncome: 2
|main_: 24
Py...
Py..
Py..
Name
Value
Type
Activate Windows
Go to Settings to activate Windows.
Autos Locals Watch 1
Call Stack Breakpoints Exception Settings Command Window Immediate Window Output
Ready
Ln 23
Col 5
Ch 5
INS
Solution Explorer Team Explorer
expand button
Transcribed Image Text:File AH Extensions Window Search Visual Studio (Ctrl+Q) PythonApplication1 Edit View Project Debug Test Analyze Tools Help Select Startup Item Live Share Python 3.7 (64-bit) ADMN Lifecycle Events Thread: [1] MainThread Stack Frame: Process: [5900] python.exe Python Programmin...Ischuh CIS-110.py X E def main): def numberofTicketsA(): numberOf TicketsA = float(input ( " Enter the number of tickets sold for class A:")) def numberofTicketsB ( ) : numberOf TicketsB = float(input ( " Enter the number of tickets sold for class B:")) def numberOfTicketsC ( ): numberOfTicketsc = float(input (" Enter the number of tickets sold for class B:")). print("- def costA) costA numberOfTicketsA 15 X def costB() costB= numberOfTicketsB 12 def costC() costC numberOfTicketsć * 9 main) def calculate Income (A, B, C): incomeGEnerated = costA()+costB( ) +costC () calculateIncome ( costA, costB, costC) print("Income generated from ticket sales is:",incomeGenerated) print(" 100 % No issues found nx Call Stack Autos Name Lang Search Depth: Search (Ctrl+E) main_.costA: 11 main_.calculatelncome: 2 |main_: 24 Py... Py.. Py.. Name Value Type Activate Windows Go to Settings to activate Windows. Autos Locals Watch 1 Call Stack Breakpoints Exception Settings Command Window Immediate Window Output Ready Ln 23 Col 5 Ch 5 INS Solution Explorer Team Explorer
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education