Assignment 13 — stringing it altogether

Due Wednesday, September 25


Program chatter.py

w1 w2 w3 w4 w5

where w1 is a random adjective, w2 is a random noun, w3 is a random verb, w4 is a random adjective, and w5 is a random noun. You are to choose the parts of the sentence in order; that is, first w1, then w2, then w3, then w4, and lastly w5.

Four sample runs (your output should be the same as we are setting the seed each run)

Enter seed: almond

Enter adjectives: teal gorgeous silly

Enter nouns: fish socks grapes noses

Enter verbs: eats runs swims dislikes likes


gorgeous socks swims silly noses


Enter seed: chestnut

Enter adjectives: teal gorgeous silly

Enter nouns: fish socks grapes noses

Enter verbs: eats runs swims dislikes likes


silly noses likes teal noses


Enter seed: walnut

Enter adjectives: big small round flat yellow purple

Enter nouns: cattle sheep cookies chickens bugs stoves

Enter verbs: run love use smell are


yellow bugs smell purple cattle


Enter seed: pecan

Enter adjectives: big small round flat yellow purple

Enter nouns: cattle sheep cookies chickens bugs stoves

Enter verbs: run love use smell are


purple cookies are yellow chickens

 


 

 

 
   
   
   
 
  © 2019 Jim Cohoon   Resources from previous semesters are available.