I wanted the program to stop only after all the letters were typed; why in the world would I try to write a program with blanks for each letter that seem intended to be filled, only to have it stop if the last letter is typed, or have to type each letter so many times until its processed? If you ran the code, my problems, as well as the intended goal, should become obvious. Also, why wouldn't someone who's willing to help me not run the code (takes a few seconds btw) I'm having trouble with in order to diagnose its faults, yet you have the time to write how you won't run it? If I did have a teacher to help me, this would be the last place I'd come to for help. It should be easy to deduce what I intended this program to do. Please no one respond being as I am done here, I just had to vent,
but instead report it if you want.
It would have been much fewer words to describe the goal of the program.
I ran the code, and showed the results of running it. But I still have
no spec for what your assignment was.
Like maybe the user is supposed to type one character at each prompt,
even though it tells him to type 7. And the program should refuse
any attempt to type more than one letter. And the user can type the
characters in any order, not just A to G, and it'll keep prompting him
till all 7 of the original letters is found. And it'll score him based
on how many tries before he finishes.
Or about 40 other possibilities.
If you do have a teacher, have him tell you about comments.