Devise a strategy for solving each of the following problems. Write out your step-by-step strategy in pseudocode (don't worry about expressing your steps in correct LiveCode commands.)
1.The president of WEGOTCHA Corp., George "Bubba" Johnson,
has decided that all employees should have a nickname in the workplace (to
encourage comradery, says George.) He gives you a list of employee names
and a list of an equal number of nicknames. You are to assign each person
a nickname chosen at random from the list. No nickname should be used more
than once. Names should be in the format Firstname "Nickname"
Lastname.
Employee Names | Nicknames |
Mary McKenna Elizabeth Hendricks Andrew Carlson Eugene Krzymarik Mike Peters Rhonda Rhodes Terrance Leonard |
"Pretty Boy" "Diva" "Stinky" "Downtown" "Hound Dog" "Killer" "Bugsy" |
2. A group of friends are asked to each write a one-sentence statement about
two acquaintances. Each sentence is in the form "John is <adjective>." You've
collected the sentences. Now write the steps that your computer must go through
to combine all of the statements about the two persons into two statements
(one for each of the two acquaintences) of this form: "John is fast, short,
stupid and industrious."
Statements: | James is thin. Betty is shy. James is friendly. James is tall. Betty is smart. |
James is slow. Betty is short. Betty is nice. Betty is hungry. James is vain. |
3.Given a list of nouns and a list of irregular plural forms in an imaginary
language, write the steps for forming the regular plural form of nouns. For
the purposes of this exercise, you need not consider any other cases but these.
Regular forms are given for your reference only.
Nouns | Irregular forms | Regular forms | |
lod galos kriz bloz mladok agasok rizof sul |
viba bulo bli plak ozok |
agasok, agasochi mladok, mladki galos, galosat rizof, rizofats |
vibak ozokkik krizik blozik lodik blik bulok sulik plakkik |