. Design a modular program

that asks how many tickets for each class of seats were sold, and then displays
the amount of income generated from ticket sales.
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.

4. 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. Design a program that asks how many tickets for each class of seats were sold, and then displays the amount of income generated from ticket sales. Use Switch/case structure.

To design a modular program that asks for the number of tickets sold for each class of seats and then displays the amount of income generated from ticket sales, you can follow the steps below:

1. Define the ticket prices for each class of seats:
- Class A seats cost $15
- Class B seats cost $12
- Class C seats cost $9

2. Prompt the user to enter the number of tickets sold for each class of seats. You can use input statements to receive the input from the user. For example:

```
num_tickets_class_a = int(input("Enter the number of Class A tickets sold: "))
num_tickets_class_b = int(input("Enter the number of Class B tickets sold: "))
num_tickets_class_c = int(input("Enter the number of Class C tickets sold: "))
```

3. Calculate the income generated for each class of seats by multiplying the number of tickets sold by the ticket price for that class. For example:

```
income_class_a = num_tickets_class_a * 15
income_class_b = num_tickets_class_b * 12
income_class_c = num_tickets_class_c * 9
```

4. Calculate the total income generated by summing the income from each class of seats. For example:

```
total_income = income_class_a + income_class_b + income_class_c
```

5. Display the total income generated from ticket sales to the user. For example:

```
print("Total income generated from ticket sales: $" + str(total_income))
```

By following these steps, you can create a modular program that calculates and displays the amount of income generated from ticket sales based on the number of tickets sold for each class of seats.

Dewayne, we are not going to do this for you. What would be the purpose of that?

We will be happy to check your logic, and your program flow. Post it.