CS 107 (Spring '09)
[Schedule]
[Programs]
[Notes
& Reference] [Examples][Syllabus]
[Lab & TA] [Tests]
[Grades]
Prof. Reed, CS 107, Fall '08
Due Monday 9/8 at 12:00 noon
Write a program in Java to create an adlib story.( This is similar to "Madlibs" that you may have seen before.) Running your program will look something like what is shown below, where user input is shown in bold:
Author: Dale Reed
Program: #1, Adlibs
TA: Englebert Humberdink, T 4-5
Aug 27, 2008
Supply some words that will be inserted into a story.
Please enter 4 nouns (a person, place, or thing, e.g. computer), one per line:
dog
arrow
volleyball
dagger
Please enter 4 adjectives (describes a noun, e.g. enormous), one per line:
diminutive
obese
dark
shallow
Please enter 5 verbs (an action, e.g. run), one per line:
kick
throw
jump
dance
shout
Please enter 1 adverb (describes a verb, e.g. quickly), one per line:
suddenly
Please enter 3 numerical values (e.g. 3, or 21), one per line:
5
99
107
This semester the most diminutive thing happened in class.
when I walked in there were 5 students who began to kick
and throw.
"Where's the Prof?" I asked suddenly.
"He slipped on a dog and began to jump", they said.
"Paramedics used a arrow to carry him out. He gave us a obese
dark assignment due in 99 days. We have to write a
shallow program to dance a volleyball by a dagger and then
shout it to turn it in."
That's when I switched majors.
Exiting Program...
turnin -c cs107 -p program1 Adlibs.java
where the file containing your solution is called Adlibs.java . To practice using the turnin command you can use the project named "junk" (rather than program1 in the example above.). Please do not name your program anything besides Adlibs.java ls -l ~i107/submit/program1
Note that you can execute turnin as many times as you would like, up until the program deadline when turnin will be disabled for this project. Each time you execute turnin for a project, you overwrite what you had turned in previously for that project. For this first program only, and only if you do not yet have an cs account, you may email your solution to your TA. Note that emailing your solution rather than using turnin may significantly delay the grading of your assignment.
[CS Dept] [UIC] [Prof. Reed]