# High Adventure Travel Agency Case Study

1171 Words5 Pages
// This program will assist the High Adventure Travel Agency // in calculating the costs of their four major vacation packages. #include #include using namespace std; // Constants for the charges const float climbRate = 350.0; // Devil's Courthouse Adventure Weekend package base rate const float scubaRate = 1000.0; // Scuba Bahamas package base rate const float skyDiveRate = 400.0; // Sky-dive Colorado package base rate const float caveRate = 700.0; // Barron Cliff Spelunking package base rate. const float climbInstruct = 100.0; // Rock Climbing instruction rate const float scubaInstruct = 100.0; // Scuba instruction rate const float dailyCampRental = 40.0; // Daily camping equipment rental/person/day const float…show more content…
* //************************************************ void scuba() { int beginners, // Those needing instruction advanced; // Those not needing instruction float baseCharges, // Base charges charges, // Total charges instruction, // Cost of instruction discount = 0, // Discount deposit; // Required deposit cout << "\nScuba Bahama\n"; cout << "------------------------------------\n"; cout << "How many person/s need an instructor? "; cin >> beginners; cout << "How many advanced scuba divers will be going? "; cin >> advanced; // Calculate base charges. baseCharges = (beginners + advanced) * scubaRate; charges = baseCharges; // Calculate 10% discount for 5 or more. if ((beginners + advanced) > 4) { discount = (charges * .1); charges -= discount; } // Add cost of instruction. instruction = beginners * scubaInstruct; charges += instruction; // Calculate required deposit. deposit = charges / 2.0; cout << "Number in party: " << (beginners +