Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

There are three seating categories at an athletic stadium. For a baseball game,

ID: 670298 • Letter: T

Question

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 $9 each. 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 income generated from each class of ticket sales and the total revenue generated. If the user fails to enter numeric values, display an appropriate error message and do not attempt to perform calculation

Explanation / Answer

Output:

Enter number of tickets sold for Class A seats:1 Enter number of tickets sold for Class B seats:1 Enter number of tickets sold for Class C seats:1 Sales for Class A:$15. Sales for Class B:$111111111111 Sales for Class C:$111111111