Convert the algorithm provided into C source code: The OUL Wagner Theater has a three tiered pricing scheme. Section A seats cost $20 each, section B seats cost $15 each and section C seats cost $10 each. Student tickets are half the price of the regular tickets. Designed a program that allows the ticket seller to enter the number of regular tickets and student tickets sold in a section and display the total amount due from the customer. A customer can only buy seats in one section per transaction but the transaction may include both student and regular priced tickets. When the agent has no more customers, he will enter X as the Section code. At the end of the program, display the total amount of sales. Use a subfunction to calculate the amount due for each individual sale.
Convert the
The OUL Wagner Theater has a three tiered pricing scheme. Section A seats cost $20 each, section B seats cost $15 each and section C seats cost $10 each. Student tickets are half the price of the regular tickets. Designed a
When the agent has no more customers, he will enter X as the Section code. At the end of the program, display the total amount of sales.
Use a subfunction to calculate the amount due for each individual sale.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images