Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions