Assistance needed.
Please type your subject in the School Subject box. Any other words, including obscure abbreviations, are likely to delay responses from a teacher who knows that subject well.
There are three seating categories at a stadium. For a softball game, Class A
# seats cost $15, Class B cost $12. and Class C seats cost $9. 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.
2 answers
Here's a pseudocode that could help you:
Input: number of tickets sold in each category.
Output: total revenue generated
Data:
Class A seats cost $15=A,
Class B cost $12.=B
Class C seats cost $9.=C
Start:
a <- Enter # of seats sold for class A
b <- ....
c <- ...
Calculate
total<- A*a+B*b+C*c
output total
Input: number of tickets sold in each category.
Output: total revenue generated
Data:
Class A seats cost $15=A,
Class B cost $12.=B
Class C seats cost $9.=C
Start:
a <- Enter # of seats sold for class A
b <- ....
c <- ...
Calculate
total<- A*a+B*b+C*c
output total