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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started