Question: 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

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. Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales. Format your dollar amount in fixed-point notation, with two decimal places of precision, and be sure the decimal point is always displayed.

Using the following test data: 1 2 3

Your output should look like this: Enter the number of Class A tickets sold: Enter the number of Class B tickets sold: Enter the number of Class C tickets sold: Total income from sale of tickets is $66.00

This is C++ and use visual studio 2017 please.

Use blank lines to separate the major parts of your main function and show your output.

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!