Question: C++ Create four overloaded functions for a Ticketmaster like system that search for a seat. The functions has three arguments number of tickets (int), maximum
C++
Create four overloaded functions for a Ticketmaster like system that search for a seat. The functions has three arguments number of tickets (int), maximum price (double) and section (string). The four overloaded functions should take:
- no arguments - look for single ticket, highest price, in any section
- one argument (number) - look for the number of tickets wanted at the highest price in any section
- two arguments (number, max) - look for the number of tickets wanted at the max price indicated in any section
- three arguments (number, max, section) - look for the number of tickets wanted at the max price indicated in the section desired.
When completed create a test program that uses each of the overloaded functions to show what each can do. Each function should print out a line that indicates what type of ticket that the particular function is looking for in a search result. Example:
ticketsearch(2, 20.00, Floor)
would return:
Looking for 2 ticket(s) at maximum cost of 20.00 each on the Floor section of the Auditorium.
Remember to use good variables, function prototypes and name/date/e-mail along with a program overview and some comments in the main program and with each function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
