Our Take-Home Exam--Part 1 of 2
(This is not the Final Exam)

The Setup:
Here is a complete, working version of your last programming assignment, with
Checking the Name and Finding the First Vowel are relegated to two functions
in the program.

If you compile this program and run it with the command:

cat names.txt | a.out
then you get the following output:
(This was initially put up here incorrectly, but now it's right.)

Enter a name:
Billy, Billy, Bo Billy
Banana, Fana, Fo Filly
Fe, Fi, Mo Milly
Billy!
Enter a name: Enter a name: Enter a name:
Ansel, Ansel, Bo Bel
Banana, Fana, Fo Fel
Fe, Fi, Mo Mel
Ansel!
Enter a name:
Quincy, Quincy, Bo Buincy
Banana, Fana, Fo Fuincy
Fe, Fi, Mo Muincy
Quincy!
Enter a name: Enter a name:
Shrshen, Shrshen, Bo Ben
Banana, Fana, Fo Fen
Fe, Fi, Mo Men
Shrshen!
Enter a name:
done, done, Bo Bone
Banana, Fana, Fo Fone
Fe, Fi, Mo Mone
done!

What You Should Do

  1. Save the program as "finalgame.c"
  2. Fix the program so that there is a line of space between the name games.  For example, there should be a line of space between "Quincy!" and "Enter a name:" above.
  3. Create a function called "PlayNameGame" and move all of the "cout" commands (which print the game) out of "main()" and to that function.  The prototype / declaration for this function could look like:   void PlayNameGame();
What you should turn in:


Our Take-Home Exam--Part 2 of 2
(This is not the Final Exam)

The Setup:
Your job in this part is to write a complete program to do the following:

Here is a sample program / user interaction session:
Enter a (long) word:  Suggestion
S
    u
g
g
    e
s
t
    i
    o
n

Enter a (long) word:  facetious
f
    a
c
    e
t
    i
    o
    u
s

Enter a (long) word:  done
Goodbye!

What You Should Do

  1. Create the program and save the program as "tabvowel.c"
What you should turn in: