#include #include using namespace std; //Write a program that asks for a password //over and over again until you get it right. int main() { string passWord; passWord = "enchiladas"; int numTries; numTries = 0; string guess; cout << "Enter your guess" << endl; cin >> guess; while (guess != passWord && numTries < 5) { numTries = numTries + 1; //increment it by 1 cout << "Loser! that is sooooo wrong!" << endl; cout << "Try again: " << endl; cin >> guess; } if (guess == passWord) { cout << "You finally got it correct. Welcome to the club " << endl; } else { cout << "Sorry, out of tries, your phone is bricked." << endl; } return 0; }