Question
C++ code Your task is to create a utility program that would allow users to add/view/query Knicks tickets on sale at TicketMaster. Step A [20
C++ code
Your task is to create a utility program that would allow users to add/view/query Knicks tickets on sale at TicketMaster.
Step A [20 points]: Declare array variables that will hold team name (that the Knicks is playing against), section number (of the ticket), and the price (of the ticket). These variables must be declared in the main function. Global variables are not allowed!!.
Step B : Provide user with the following options and let user choose what they want to do. Each task must have its own function (except Exit). main() will call the appropriate function based on user input.
1 Add New Ticket [30 points]: This will allow user to add a new ticket to the system. Ticket information should be stored in the arrays along with other tickets.
2 Display All Tickets [30 points]: This will basically display all the tickets in a formatted manner on the screen.
3 Display Tickets By Budget [60 points]: This will ask user for his/her budget and display only the tickets that are priced less than or equal to this budget price.
4 Display Cheapest Price By Event [70 points]: This will ask user which event they are interested in. User basically enters the name of the team Knicks is playing against. Your program should find the cheapest ticket for that game. For this functionality, I need you to return the cheapest ticket price back to main() and let main() display it to user. So unlike other functions, this particular function will return a value (cheapest ticket price at that event) and this value will be displayed to user in the main() function.
5 Exit [20 points]: user wants to exit the program.
After each task, the program should present the main menu to user, from which user can select another task [20 points].
Penalties:
I will deduct up to 30 points for indentation problem and/or not properly commenting your code,
I will deduct up to 40 points if your program have some usability problems. Ex. you must cout what user is supposed to enter before collecting an input with cin. Properly and neatly format the main menu of the program.
I will deduct up to 50 points if your program does not compile. Make sure that you are submitting a program that compiles.
I will deduct up to 30 points if your program has runtime error (crashing while running).
You should expect that I will deduct the maximum points specified if you stumble upon these penalties.
If you implement the code properly, your program will obviously output correct information. However, your program outputting correct information does not mean that you implemented the program correctly. I am not grading just the output but your code also. If a function is not implemented properly, I may still grant nominal points at my discretion.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started