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

Respuesta :

I guess this is how it works,

Module main();

Declare Integer ClassA = 15

Declare Integer ClassB = 12

Declare Integer ClassC = 9

Print (“Number of Class A tickets sold = “);

ClassAamount = getLine();

Print (“Number of Class B tickets sold = “);

ClassBamount = getLine();

Print (“Number of Class C tickets sold = “);

ClassCamount = getLine();

Display (“Total amount for Class A tickets is $” & ClassAamount);

Display (“Total amount for Class b tickets is $” & ClassBamount);

Display (“Total amount for Class C tickets is $” & ClassCamount);

End Module