Author Topic: A humorous homework assignment..  (Read 5478 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
A humorous homework assignment..
« on: December 02, 2007, 01:17:50 am »
So, for programming, we had to make a mad-lib sort of program that would take bunch of parts of speech and then spit them back out in a fashion that'd make you shit yourself with laughter. Here's what I came up with.

(Code attached)

Nursery Rhymes, MadLibs Style!
I'll ask for a part of speech, and you type it and press enter!

Noun:         refrigerator
Noun:         banana
Noun:         Orangutan
Noun:         peanut
Noun:         sandwich
Noun:         vacuum
Plural noun:  iagi
Adjective:    old
Adjective:    smelly
Adjective:    short
Adjective:    funny-looking
Verb (past)   died

Old Mother Hubbard went to the refrigerator to get her old banana a bone.
When she got there, the Orangutan was smelly, and so her short dog had none.

Jack and Jill went up the peanut to fetch a sandwich of water.
Jack fell down and broke his vacuum and Jill came tumbling after.

There was an funny-looking woman who died in a shoe.
She had so many iagi, she didn't know what to do!

Press any key to continue . . .


EDIT -
I attached an ncb instead of a cpp file. Crap. Fixed.
« Last Edit: December 02, 2007, 01:19:46 am by Joe[ix86] »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline dark_drake

  • Mufasa was 10x the lion Simba was.
  • x86
  • Hero Member
  • *****
  • Posts: 2440
  • Dun dun dun
    • View Profile
Re: A humorous homework assignment..
« Reply #1 on: December 02, 2007, 09:03:38 am »
I was hoping to be humored, but I left without so much as a cheeky grin to show for the colossal effort of hasty clickery of my mediocre touchpad.
errr... something like that...

Offline CrAz3D

  • Hero Member
  • *****
  • Posts: 10184
    • View Profile
Re: A humorous homework assignment..
« Reply #2 on: December 02, 2007, 01:15:26 pm »
Shouldn't it be Jill's vacuum?

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: A humorous homework assignment..
« Reply #3 on: December 02, 2007, 01:56:29 pm »
Nah, Jack sucks too. They're not together, they're just friends. Jack is a closet gay, duh.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline wires

  • Pwnage
  • x86
  • Hero Member
  • *****
  • Posts: 1103
  • cocaine is fun!
    • View Profile
    • Weapon Of Mass Destruction
Re: A humorous homework assignment..
« Reply #4 on: December 02, 2007, 11:19:56 pm »
Nah, Jack sucks too. They're not together, they're just friends. Jack is a closet gay, duh.
Thought that was Joe.  :-\

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: A humorous homework assignment..
« Reply #5 on: December 02, 2007, 11:25:55 pm »
Nah, Jack sucks too. They're not together, they're just friends. Jack is a closet gay, duh.
Thought that was Joe.  :-\

Holy shit, it's SeRiW!
And like a fool I believed myself, and thought I was somebody else...