A+ Computer Science

A+ Computer Science MAD LIB

Lab Goal :This lab was designed to teach you more about ArrayList, Math.random(), and file input.

Lab Description :Create a Mad Lib program that reads in lists of nouns, adjectives, and verbs as well as a story and prints out a Mad Lib. Come up with your own Mad Lib to make it more interesting.

Sample Data :

nouns.dat :

dog

pig

chicken

building

car

person

place

thing

truck

city

state

school

student

bird

turkey

lion

tiger

alligator

elephant

verbs.dat :

run

fly

skip

climb

clean

smell

eat

cry

smile

laugh

jump

crank

program

story.dat :

The # @ after the & & # while the # @ the #

adjectives.dat :

blue

green

orange

fat

skinny

tall

funny

mad

glad

happy

silly

purple

big

little

tiny

huge

Files Needed ::

MadLib.java

MadLibRunner.java

nouns.dat

verbs.dat

adjectives.dat
story.dat

Sample Output :

The state clean after the skinny big place while the student skip the state

Leave a Reply

Your email address will not be published. Required fields are marked *