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

Homework 5- Fall 2007


Due: Monday November 12th, 2007 at 7:00 PM

Quick Overview

For this assigment you are going to write a set of functions in JES which will make an html page based on the contents of a directory. Your html page will be made of links to media instances in the directory (sound or picture). Please read on for REMOVED information....


Details, Details, Details...
  1. Your function should be named media (case sensitive) and your file should be named hw5.py
  2. Your function should take in a directory
  3. Your function should generate a html file named media.html
  4. Rows: Rows: Your table should have one row per media item. Note: A media item is either a .jpg picture or a .wav sound If your directory only has 2 pictures and 2 sounds only 4 rows should be created
  5. Columns: Your table should have 3 columns in the following order: A picture that links to either the sound file or the larger version of the picture, the filename, and finally the height of the image or the length of the sound
  6. For each image, you will display a 75 pixel height version of the image (by setting height="someNumberHERE" in the img tags) and make the image a clickable link which takes you to the full size version of the picture
  7. For each sound, you will display the filename of the sound and a special sound picture that you pick out, it must be renamed to "soundPic.jpg" (make sure that it is appropriate). Note: The filename of the sound should appear in the second column and the soundPic should be the same for every sound and appear in the first column.
  8. You must account for pictures ending with .jpg, .JPG, .jpeg, and .JPEG and sounds files ending with .wav and .WAV
  9. At the bottom of your page you should have the total number of media items


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

How the TA will grade
Your TA, after loading your code into JES will type the following:
>>> setMediaPath() (to where soundPic.jpg is located)
>>> dir = pickAFolder()
>>> media(dir)
Then your TA will navigate to the directory orginally chosen and open the html file created.


At last extra credit
Extra Credit: +15 points
For this section, you need to upload the page you generated to your prism account. In your collaboration statement, you need to specify whether you have done the extra credit.
  1. Rename the html page you created above to index1.html.
  2. Download WinSCP(Windows) or Fugu(Mac)
  3. Follow these instructions on this page - its the same instructions for Windows or Mac
  4. When your are done, go to the following link and see if your page is there - http://www.prism.gatech.edu/~prismID/index1.html
  5. This is extra-credit so we may not show how to do it in class or recitation. You are expected to work on it and ask questions.
    Remember to add a line to your collaboration statement saying that you did the extra credit.

Questions?

Link to this Page