Question: C++ Programming Question Help Use the alphabet from lecture for all questions. !.abcdefghijklmnopjrstuvwxyz Implement a linear search typing program. Repeatedly ask the user what

C++ Programming Question Help

Use the alphabet from lecture for all questions.

" !.abcdefghijklmnopjrstuvwxyz"

Implement a linear search typing program. Repeatedly ask the user what letter they are thinking until you get the right one. Stop when the user types the exclamation point.

Example Execution Trace:

 Are you thinking of the letter ' '? n Are you thinking of the letter '!'? n Are you thinking of the letter '.'? n Are you thinking of the letter 'a'? n Are you thinking of the letter 'b'? n Are you thinking of the letter 'c'? y Are you thinking of the letter ' '? n Are you thinking of the letter '!'? n Are you thinking of the letter '.'? n Are you thinking of the letter 'a'? y Are you thinking of the letter ' '? n Are you thinking of the letter '!'? n Are you thinking of the letter '.'? n Are you thinking of the letter 'a'? n Are you thinking of the letter 'b'? n Are you thinking of the letter 'c'? n Are you thinking of the letter 'd'? n Are you thinking of the letter 'e'? n Are you thinking of the letter 'f'? n Are you thinking of the letter 'g'? n Are you thinking of the letter 'h'? n Are you thinking of the letter 'i'? n Are you thinking of the letter 'j'? n Are you thinking of the letter 'k'? n Are you thinking of the letter 'l'? n Are you thinking of the letter 'm'? n Are you thinking of the letter 'n'? n Are you thinking of the letter 'o'? n Are you thinking of the letter 'p'? n Are you thinking of the letter 'q'? n Are you thinking of the letter 'r'? n Are you thinking of the letter 's'? n Are you thinking of the letter 't'? y Are you thinking of the letter ' '? n Are you thinking of the letter '!'? y You typed: cat

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!