#include #include "balloon.h" // illustrates use of Balloon class // balloon (guided by auto-pilot) ascends, cruises, descends main() { Balloon exxon; Balloon mobil; int rise; // how high to fly (meters) int duration; // how long to cruise (seconds) cout << "How high (in meters) to rise: "; cin >> rise; cout << "How long (in seconds) to cruise: "; cin >> duration; exxon.Ascend(rise); // ascend to specified height exxon.Cruise(duration); // cruise for specified time-steps exxon.Descend(0); // come to earth cout << "How high (in meters) to rise: "; cin >> rise; cout << "How long (in seconds) to cruise: "; cin >> duration; mobil.Ascend(rise); exxon.Ascend(rise+20); mobil.Cruise(duration); exxon.Cruise(duration + 5); mobil.Descend(0); exxon.Descend(0); }