#include #include "CPstring.h" // Name: Susan Rodger // // Date: 1/29/96 // // Purpose: To give travel info for traveling to Europe void TravelPlace(string country) // Determines which travel brochure to send { if ("Switzerland" == country) { cout << "We'll send you our Switzerland brochure." << endl; } else if ("Germany" == country) { cout << "We'll send you our Germany brochure." << endl; } else if ("France" == country) { cout << "We'll send you our France brochure." << endl; } else { cout << "We do not have a brochure for " << country << endl; } } void TravelLodge(string place, double money, int years) // determines type of lodging { cout << "We'll also send you info on "; if (money > 200.0) { cout << "exquisite suites." << endl; if ("France" == place) { cout << "France has special rooms in palaces that might"; cout << endl << "be of interest to you." << endl; } } else if (money > 110.0) { cout << "grand hotels." << endl; } else if (money > 60.0) { cout << "hotels." << endl; } else if (money > 20.0) { if (years > 30) { cout << "adult "; } else { cout << "youth "; } cout << "hostels." << endl; } else { cout << "camping." << endl; } } main() { string country; double amount; int age; cout << "Welcome to Exotic Travel Agency" << endl << endl; cout << "Enter european country: "; cin >> country; cout << "How old are you?: "; cin >> age; cout << "How much to spend per night for lodging?: "; cin >> amount; TravelPlace(country); TravelLodge(country, amount, age); }