Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions