#include #include using namespace std; int main() { //step0: declare some variables string guess; string password; password = "apple"; //step1: Ask user to enter a password cout << "Please enter the password: " << endl; cin >> guess; //step2: check if they entered the correct password. //If so, congratulation, else, KEEP ASKING while (guess != password) { cout << "Wrong password! Please try again: " << endl; cin >> guess; } cout << "Ah, I see you finally made it out of" << endl; cout << " the while loop. You must have entered the correct password" << endl; return 0; }