Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 sameStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started