Can anyone help me with this?
Stadium Seating
There are three seating categories at the Broward College Stadium. For a softball game, student tickets cost $9.00, senior tickets cost $12.00 and general tickets cost $15.00. Write a program that asks how many tickets for each class of seats were sold. Then display the total number of tickets sold, the amount of income generated from each class and the total ticket sales.
For the program:
Note: Use constants for the seat prices.
Pseudocode:
start
student := 9
senior := 12
general := 15
total_Income = 0
Input how many student tickets would you like to purchase
Input how many senior tickets would you like to purchase
Input how many general tickets would you like to purchase
incomegeneral = general * countgeneral
totalTicketssold = countstudent + countsenior + countgeneral
total_cost = incomestudent + incomesenior + incomegeneral
print total number of tickets sold
print income generated from students
print income generated from senior
print income generated from general
print Total cost
stop
Program:
student = 9
senior = 12
general = 15
total_Income = 0
countstudent = int(input("How many student tickets would you like to purchase: "))
incomestudent = student * countstudent
countsenior = int(input("How many senior tickets would you like to purchase: "))
incomesenior = senior * countsenior
countgeneral = int(input("How many general tickets would you like to purchase: "))
incomegeneral = general * countgeneral
totalTicketssold = countstudent + countsenior + countgeneral
total_cost = incomestudent + incomesenior + incomegeneral
print("Total number of tickets sold: ",totalTicketssold)
print("Income generated from students: ",incomestudent)
print("Income generated from senior: ",incomesenior)
print("Income generated from general: ",incomegeneral)
print("Total cost is ",total_cost)
Output:
Can anyone help me with this? Stadium Seating There are three seating categories at the Broward...
There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales. Format your dollar amount in a fixed-point notation with two decimal points and make sure the decimal point is always displayed. (Write for C++ code ony please)
There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales. Format your dollar amount in fixed-point notation, with two decimal places of precision, and be sure the decimal point is always displayed. Using the following test data:...
How would you code this in Python3? Instructions from your teacher: There are three seating categories at a stadium. Class A seats cost $20, Class B seats cost $15, and Class C seats cost $10. Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales.
In Python There are 3 seating categories at a stadium. Class A seats cost $20, class B cost $15, and class C $10. Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from tickets sales. This program should have main, calcIncome, and showIncome functions. Main function should get number of seats sold for each category and sent to calcIncome. calcIncome calculates income for each category, the return...
There are three seating categories at an athletic stadium. For a baseball game, Class A seats cost $15 each, Class B seats cost $12 each, and Class C seats cost $9each. Create an application that allows the user to enter the number of tickets sold for each class. The application should be able to display the amount of incomegenerated from each class of ticket sales and the total revenue generated.Use the following test data to determine if the application is...
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 seatscost $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 aprogram 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 validatethe numbers...
Please help me develop executable code in C++: //The manager of a football stadium wants you to write a program that calculates the total ticket //sales after each game. There are four types of tickets sold: box, sideline, premium, //and general admission. //After each game, the data is stored in a file in the following form: //ticketPrice numberofTicketsSold //... //Sample data are shown below: //250 5750 //100 28000 // 50 35750 // 25 18750 //The first line indicates that the...
The Course Project can be started in Week 7 and is due by 11:59 pm CT Saturday of Week 8. It must follow standard code formatting and have a comment block at the top of the code file with a detailed description of what the program does. Functions must have a comment block with a detailed description of what it does. Pseudocode must be provided in the comment block at the top of the file. This program will allow the...
1 Stadium seating The Golden One Center is a monopoly supplier of Sacramento Kings tickets. Suppose that demand to see the Kings is given by p(Q) - into the stadium equals 1. For simplicity, assume that there are no fixed costs 1 vQ The marginal cost of letting another person . a. Write Golden One's profits in terms of Q. Simplify your answer as much as possible. (Hint: if the marginal cost is 1 and there are no fixed costs,...
Can you help us!! Thank you! C++ Write a program that can be used by a small theater to sell tickets for performances. The program should display a screen that shows which seats are available and which are taken. Here is a list of tasks this program must perform • The theater's auditorium has 15 rows, with 30 seats in each row. A two dimensional array can be used to represent the seats. The seats array can be initialized with...