Question: pls don't use using namespace std; as well is for c++ 4.1 - If/Else Statements / 10. IF + Char and String Reset to Starter
pls don't use using namespace std; as well is for c++
4.1 - If/Else Statements / 10. IF + Char and String Reset to Starter Code Saved 15 points possible The If statement can be used to change the value of a string, which in turn can affect to initially store the word 'was". output that the user sees. In this program, you will set your favorite letter to'qYou will also set a string Ask the user to guess your letter. If it is guessed incorrectly, modify the string to store the words was not". If guessed correctly, don't change the string. Output 1 Guess my favorite lowercase letter: (assume user types: 9. My Favorite letrAT WAS quessed Output 2 Guess my favorite lowercase letter: (assume user types: al My favorite letter was not guessed Hints and Notes 1) Do NOT use an ELSE for this question. You only need one IF statement and one output statement for the was / was not guessed part. 2] As you probably noticed, the only words that change in the output are 'was" and "was not". The rest of the output is always the same
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
