Question: 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?!  Can someone write this code in c++, that can work on
xcode?! Implement the following program. There are two tickets for a concert.

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

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!