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:
Now that you're done. Run your Mom's name through the Name Game and send her a copy!
You MUST name your project "project7.c".
At the top of this program put the following comments:
| Correct Result | 20 points |
| Readability (Code and Output) | 20 points |
Inspiration
for this assignment comes from Sherry Ellis' 1964's hit, the "Name Game."
<http://www.lyricsxp.com/lyrics/t/the_name_game_shirley_ellis.html>
The song went as high as #3 on the Billboard Charts.
The name game!
Shirley!
Shirley, Shirley bo Birley Bonana fanna fo Firley
Fee fy mo Mirley, Shirley!
Lincoln!
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
fo
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, 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