Answered step by step
Verified Expert Solution
Link Copied!

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++image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

More Books

Students also viewed these Databases questions