Question: Overview For this program you will create an application for a travel agent that is booking summer vacations for SMU students. The travel agent has

 Overview For this program you will create an application for a

travel agent that is booking summer vacations for SMU students. The travelagent has three trip types available, Beach, Mountain and Europe. Each triphas a different cost per night per person. There is a potentially

Overview For this program you will create an application for a travel agent that is booking summer vacations for SMU students. The travel agent has three trip types available, Beach, Mountain and Europe. Each trip has a different cost per night per person. There is a potentially never-ending line of students that want to book their vacations. The students have the option to review the details of the vacation before deciding to purchase the vacation. Once a student has decided to book a vacation they will need to provide their name, how many people are taking the vacation and how many nights they would like. At the end of the day, the travel agent would like to see a summary of vacations sold and the total sales Requirements Vacations purchased are dynamically allocated and tracked within a vector Vacations are polymorphically processed with at least one pure virtual function A STL map will keep track of the price per night for each vacation type You must appropriately deallocate memory in the destructors (and any other memory you dynamically allocate when you run your program) * . Example interaction of the program Welcome to SMU Summer Vacation Planning What type of vacation are you interested in? 1. Beach 2. Mountain 3. Europe1 You have selected the following vacation: Vacation Type Beach Cost per night for one person: 1 $500 2 $550 3 $600 4 $650 5 $700 6 $750 Would you like to keep it? (Enter y or n)n Welcome to SMU Summer Vacation Planning What type of vacation are you interested in? 1. Beach 2. Mountain 3. Europe2 Overview For this program you will create an application for a travel agent that is booking summer vacations for SMU students. The travel agent has three trip types available, Beach, Mountain and Europe. Each trip has a different cost per night per person. There is a potentially never-ending line of students that want to book their vacations. The students have the option to review the details of the vacation before deciding to purchase the vacation. Once a student has decided to book a vacation they will need to provide their name, how many people are taking the vacation and how many nights they would like. At the end of the day, the travel agent would like to see a summary of vacations sold and the total sales Requirements Vacations purchased are dynamically allocated and tracked within a vector Vacations are polymorphically processed with at least one pure virtual function A STL map will keep track of the price per night for each vacation type You must appropriately deallocate memory in the destructors (and any other memory you dynamically allocate when you run your program) * . Example interaction of the program Welcome to SMU Summer Vacation Planning What type of vacation are you interested in? 1. Beach 2. Mountain 3. Europe1 You have selected the following vacation: Vacation Type Beach Cost per night for one person: 1 $500 2 $550 3 $600 4 $650 5 $700 6 $750 Would you like to keep it? (Enter y or n)n Welcome to SMU Summer Vacation Planning What type of vacation are you interested in? 1. Beach 2. Mountain 3. Europe2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!