Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone write this code in c++, that can work on xcode?! Implement the following program. There are two tickets for a concert. The premium

Can someone write this code in c++, that can work on xcode?! image text in transcribed
image text in transcribed
Implement the following program. There are two tickets for a concert. The premium tickets cost $80 each and regular tickets cost $40 each. Prompt the user how many tickets of each category he would like. Then print an invoice with overview of the order and total price. Include a sales tax of 9.25%. Format your output nicely that all numbers and decimals align! Limit decimals to two digits. Declare two integer constants for the ticket prices, 80 and 40. Then declare two integer variables for the ticket counts that are entered by a user. Show the prompt on the console and read in both values as shown in the example below. Now, you have all data to compute the totals. Declare two variables for the total and initialize each to the total by multiplying the ticket price with the ticket count. Declare another variable final prices with the overall total by adding both totals up. Finally, show the results as shown in the example below. Example: How many tickets would you like to order? Premium Tickets ($80): 4 Regular Tickets ($40): 2 Invoice Premium: $ 80 x 4 = $ 320.00 Regular: $ 40 x 2 = $ 80.00 Sales Tax: 9.25% = $ 37.00 Total Price: $ 437.00

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

Be familiar with the basic ways to manage capacity.

Answered: 1 week ago

Question

Be familiar with the five basic ways to manage demand.

Answered: 1 week ago