// Menu Chooser // Demonstrates the switch statement #include #include using namespace std; int main() { cout << "Difficulty Levels\n\n"; cout << "1 - Easy\n"; cout << "2 - Normal\n"; cout << "3 - Hard\n\n"; int choice; string plane; cout << "Choice: "; cin >> choice; switch (choice) { case 1: plane = "Piper Arrow"; cout << "You picked Easy, your were issued a " << plane << ".\n"; break; case 2: plane = "Learjet 60"; cout << "You picked Normal, your were issued a " << plane << ".\n";; break; case 3: plane = "Boeing F-15" ; cout << "You picked Hard, your were issued a " << plane << ".\n";; break; default: plane = "paper aeroplane"; cout << "You made an illegal choice, your were issued a paper aeroplane.\n"; } system("PAUSE"); return 0; }