Project #7

Word Games

40 points


This program works hones your text manipulation skills through the implementation of several word games.


Create a word manipulation program that performs the following functions:

  1. Display a menu with two choices:  1.  Name Game, 2.  Exit.
  2. If Name Game is chosen, ask the user for a first name.  The manipulations are based on a 1960's song entitled The Name Game, by Sherry Ellis.  The instructions on how to perform the manipulation are contained within the song, and are included as an Appendix.  You may search the web for more information on the algorithm.

Now that you're done.  Run your Mom's name through the Name Game and send her a copy! 

Submitting your program:

You MUST name your project "project7.c".

At the top of this program put the following comments:

Upload your Source File to the appropriate Oncourse Drop Box by 11PM on the due date.

Grading scheme:

Correct Result 20 points
Readability (Code and Output) 20 points

Acknowledgements and Appendix:

Inspiration for this assignment comes from Sherry Ellis' 1964's hit, the "Name Game."   <>  The song went as high as #3 on the Billboard Charts.




The name game!

Shirley, Shirley bo Birley Bonana fanna fo Firley
Fee fy mo Mirley, Shirley!

Lincoln, Lincoln bo Bincoln Bonana fanna fo Fincoln
Fee fy mo Mincoln, Lincoln!

Come on everybody!
I say now let's play a game
I betcha I can make a rhyme out of anybody's name
The first letter of the name, I treat it like it wasn't there
But a B or an F or an M will appear
And then I say bo add a B then I say the name and Bonana fanna and a
And then I say the name again with an F very plain
and a fee fy and a mo
And then I say the name again with an M this time
and there isn't any name that I can't rhyme

Arnold, Arnold bo Barnold Bonana fanna fo Farnold
Fee fy mo Marnold Arnold!

But if the first two letters are ever the same,
I drop them both and say the name like
Bob, Bob drop the B's Bo ob
For Fred, Fred drop the F's Fo red
For Mary, Mary drop the M's Mo ary
That's the only rule that is contrary.

Okay? Now say Bo: Bo
Now Tony with a B: Bony
Then Bonana fanna fo: bonana fanna fo
Then you say the name again with an F very plain: Fony
Then a fee fy and a mo: fee fy mo
Then you say the name again with an M this time: Mony
And there isn't any name that you can't rhyme

Every body do Tony!
Pretty good, let's do Billy!
Very good, let's do Marsha!
A little trick with Nick!
The name game