
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
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](https://content.bartleby.com/qna-images/question/8a4eefe2-e0cd-43c8-b0b1-0843ac2a97be/5de0d548-382f-4e7f-9e7d-93de357bb3d1/7u9wn1p_thumbnail.png)
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

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 nowThis is a popular solution!
Step by stepSolved in 4 steps with 1 images

Knowledge Booster
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
- StrathSoft, a software development company, was approached by EatWell chain of restaurants to commission a tailor-made software to automate their restaurant sales. The sales manager of EatWell chain of restaurants described their current manual process of salesas follows: “We sell many food items, each item is identified by an identification code and each food item has a name and price. We use a variety of ingredients in our food items. Each ingredient hasa unique ID, name, production date and expiry date. One ingredient can be used in many food items. We have many customers. Customers have a name, a unique ID, address and contact. When customers place orders, they buy one or many food Items. Each order has a unique ID,order date and total” 1. As a system designer for StrathSoft, design a class diagram for the above descriptionof the part of the prospective system. 2. Develop the part of the system that will allow you to create items made of a list ofingredients. Use a driver class to…arrow_forwardI do get this logic but it would be helpful if you could define this in code flow.i.e., what goes where. I'm entirely new to opengl java programming.arrow_forwardDon't you dare give me AI generated answer or plagiarised answer. If I see these things I'll give you multiple downvotes and will report immediately.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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