/* Base program for control structures Written by Bhaskar Bhattacharya Copyright 2016 You need to modify this program to do the following steps 1. Depending on their choice ask for coressponding values and print them out (almost done for you) 1 b. See if you can change the if statements to a switch case 2. Put entire structure in a loop that runs until I press q 3. Make sure it checks for bad values (-ve numbers, words?) 4. Add perimeter calculations as separate choices */ #include using namespace std; int main(){ cout << "1. Rectangle area" << endl; cout << "2. Square area" << endl; cout << "3. Circle area" << endl; cout << "What is your choice?" << endl; int choice; cin >> choice; if (choice == 1){ //TODO: Ask for the length and breadth and output area } if (choice == 2){ //TODO: Ask for the length and output area } if (choice == 3){ //TODO: Ask for the radius and output area } return 0; }