Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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