Part 2: Function Problems PROBLEM #1: There are three general-seating categories
ID: 3716500 • Letter: P
Question
Part 2: Function Problems PROBLEM #1: There are three general-seating categories in Dallas Stadium. A Class A seat cost s200.oo, a Class B seat cost s150.oo, and a Class C seat cost $100.0o. Create a function Dallasseating that allows the user to specify the number of tickets and the a specific seating category and then returns the cost of the tickets. PROBLEM #2: A painting company has determined that for every 112 feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $35oo per hour for labor. Create a function PaintJob that allows the user to specify the height of the wall, the width of the wall, and the price of the paint per gallon. The function should display the following data: a The number of square feet in the paint job The number of gallons of paint required The hours of labor required The cost of the paint The cost of the labor The total cost of the paint jobExplanation / Answer
As per Chegg guidelines, if a question of the user contains more than one question then the expert need to answer the first question. As I need to follow the guidelines I am answering the first question. Hope you read the guidelines and understand. :)
Problem 1:
def DallasSeating():
seats = int(input('Enter no of seats: '))
category = input('Enter the category: ')
if category == 'A':
price = 200 * seats
elif category == 'B':
price = 150 * seats
else:
price = 10 * seats
print('The cost of tickets is ', price)
DallasSeating()
**Comment for any further queries.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.