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
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