Question: There are three seating categories at a stadium. For a baseball game, Class A seats cost $22.99 each, Class B seats cost $14.99 each, and

There are three seating categories at a stadium. For a baseball game, Class A seats cost $22.99 each, Class B seats cost $14.99 each, and Class C seats cost $9.99 each. Write a complete Java program which asks the user how many tickets for each class of seats were sold. The program then outputs

1. the number of tickets sold for each class, and

2. the amount of income generated by each class.

3. In addition, the program also outputs the total income generated by all the classes combined.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!