Asked by John
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.
# 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.
Answers
Answered by
Writeacher
Assistance needed.
Please type your <u>subject</u> in the <b>School Subject</b> box. Any other words, <u>including obscure abbreviations</u>, are likely to delay responses from a teacher who knows that subject well.
Please type your <u>subject</u> in the <b>School Subject</b> box. Any other words, <u>including obscure abbreviations</u>, are likely to delay responses from a teacher who knows that subject well.
Answered by
MathMate
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
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.