The Ticket Sales project was designed by Leigh Anne Fitz of Virginia Beach City Public Schools and the autograding tests were designed by Kate McDonnell of Cherry Creek Schools in Colorado.
Imagine you are organizing a charity E-sports Tournament. Before the big day, student tickets are sold, and their prices vary depending on factors like early-bird discounts or VIP tier additions.
To help the event planning committee budget properly, you will write a Python program that collects all ticket sale prices into a list and runs analysis functions to calculate key metrics, such as total revenue, average ticket sales, and other ticket statistics.
Enter a ticket price (or enter -1 to finish): 10
Enter a ticket price (or enter -1 to finish): 15
Enter a ticket price (or enter -1 to finish): 25
Enter a ticket price (or enter -1 to finish): 40
Enter a ticket price (or enter -1 to finish): 10
Enter a ticket price (or enter -1 to finish): 15
Enter a ticket price (or enter -1 to finish): 10
Enter a ticket price (or enter -1 to finish): 40
Enter a ticket price (or enter -1 to finish): -1
Total revenue generated: $ 165.00
Average ticket price: $ 20.62
Highest ticket price sold: $ 40.00
Lowest ticket price sold: $ 10.00
Number of tickets sold at $ 10.00 : 3
Number of tickets sold at $ 15.00 : 2
Number of tickets sold at $ 25.00 : 1
Number of tickets sold at $ 40.00 : 2
Project3.11.1Event Ticket Sales.
This project involves creating a program to manage event ticket sales using lists and procedures.
Consider the list included in the main part of your program. Suppose another programmer adds several new elements to the end of the list. Explain how the code in any of the functions would need to be modified to account for the additional elements. If no changes to the code segment are necessary, explain why this is the case for your program.
Consider the list included in the main part of your program. Explain how the list uses abstraction to manage complexity in your program. Suppose the list was not included in your program. Describe how you would need to adjust the code segment so that it has the same behavior. If it is not possible to have the same behavior without the use of the list, explain why.
Describe an error that you encountered while you were creating the code, and how you fixed your code to remove the bug. How did you test the code to make sure it was working correctly?