/* Base program for control structures Written by Bhaskar Bhattacharya Copyright 2016 Code used in lecture */ #include #include #include #include using namespace std; int main(){ int bank_account; //Normal if statements if (bank_account < 0){ cout << "Huh?" << endl; } else if (bank_account > 1000000){ cout << "WHAAAAAAAAAT?" << endl; } else{ cout << "Welcome to the 99%" << endl; } ////Nested if statements //if (bank_account > 0){ // if (bank_account > 1000000){ // cout << "WHAAAAAAAAAT?" << endl; // } // else{ // cout << "Welcome to the 99%" << endl; // } //} //else{ // cout << "Huh?" << endl; //} ////If statements - use switch case to fix //srand(time(NULL)); //int die = rand() % 6 + 1; //if (die == 1){ // cout << "Hello I'm Mercury" << endl; //} //if (die == 2){ // cout << "Hello I'm Venus" << endl; //} //if (die == 3){ // cout << "Hello I'm Earth" << endl; //} //if (die == 4){ // cout << "Hello I'm Mars" << endl; //} //if (die == 5){ // cout << "Hello I'm Jupiter" << endl; //} //if (die == 6){ // cout << "Hello I'm Saturn" << endl; //} //While loop make it print 0 and add "Blast off" at the end //cout << "Countdown" << endl; //int count = 10; //while (count > 0){ // cout << count << endl; // count = count - 1; // Sleep(1000); //} //Convert to do while //Convert to for loop int ignoreme; cin >> ignoreme; }