Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

This page removed for FERPA compliance
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Fall 2006 - Homework 4


Due: Friday 3 November at 7PM

Quick Overview

For this assigment you are going to write a function that will generate a photographic "MadLib" -- see here for an example. Given some input URLs, you will generate a story. Please read on for REMOVED information....


Details, Details, Details...
  1. Your function should be named makeMadLib (case sensitive) and your file should be named hw4.py
  2. Your function should take in as input ONE directory (as a string) and FIVE (5) image URLs:
    1. A male person
    2. A female person
    3. A pet
    4. A place (like a beach or the moon)
    5. Food

    We might call it like this
    makeMadLib("C:/mediasources","http://coweb.cc.gatech.edu:8888/uploads/cs1315/4418/Mark.jpg","http://coweb.cc.gatech.edu:8888/uploads/cs1315/4418/Barbara.jpg","http://coweb.cc.gatech.edu:8888/uploads/cs1315/4418/horse.jpg","http://coweb.cc.gatech.edu:8888/uploads/cs1315/4418/beach.jpg","http://coweb.cc.gatech.edu:8888/uploads/cs1315/4418/bird.jpg")

  3. Your function should generate a html file named with your prism ID with ".html", as in gt678h.html
  4. The HTML in your file should tell a story using these image URLs:
    1. Your text should be at least three paragraphs and 20 sentences long--aim for a couple screenfuls.
    2. You must have at least one picture reference per sentence.
    3. All images must appear at least once.
    4. Your characters must speak "in quotes" in at least four sentences.
    5. Your sentences must be grammatically correct and punctuated correctly.
    6. At least two of the images must appear at two different sizes in the story, e.g., 100 pixels wide in one appearance and 200 pixels wide in another appearance.


REMOVEDmmary/Checkoff list
You will be graded on the following:

How the TA will grade
Your TA will create a folder (like "C:/Temp") on her disk and put a few pictures in it. Then Your TA, after loading your code into JES will type the following (for example -- the TA will pick the pictures):
>>> makeMadLib("C:/Temp","Mark.jpg","barbara.jpg","beach.jpg","horse.jpg","cheese.jpg")
(Note that the filenames by themselves are valid relative URLs.)
Then your ta will navigate to the specified directory "C:/Temp" and open the html file created.


At last extra credit

Questions?

Link to this Page