CSSE 120 -- Intro. to Software Development

Homework 6

  1. Complete the assigned reading for the next session (see the course schedule).
  2. Complete the Angel quiz over this reading. You'll find this on the course Angel page, under Lessons → Homework → Homework 6 → Defining Functions
  3. Photo slideshow: Write a program, slideshow.py, that implements the following design:

    Submit your Python source file and the associated files as a zip file named slideshow.zip to the Slideshow Drop Box in the Homework 6 folder on ANGEL. Your zip file should be NO LARGER than 2 MB. Your zip file should contain the following files

    1. The source code file slideshow.py
    2. Three image input files names show0.txt, show1.txt, and show2.txt.  The file show0.txt should contain the name of ONLY one image file.
    3. The image files whose names appear in at least one of the image input files. Please, do not submit images with inappropriate content.

  4. Web link --- ACM SIGGRAPH: SIGGRAPH has been serving over 8,000 ACM SIGGRAPH members and the entire computer graphics and interactive techniques community. This site is home of many interesting articles on the compute graphics field.
  5. File input: This problem was part of Homework 5. Some people may find it a bit more challenging than previous problems, so we gave you more time to work on it.
    1. Write a program, funcPlot.py, that implements the following design:
      • Prompt the user for a file name
      • Open a file with the given name
      • Display a graphics window with width 720 and height 400.
      • Read each line from the file. For each line, plot a point on the graphics window. You should assume the lines have the format specified in problem 3 of Homework 5. Treat the first number as the x coordinate and the second number as the y.
      • Close the file
    2. Test your program using your output from problem 3 of Homework 5 . You may also test using the sample outputs for different functions below. (The functions are "upside down" because of the graphics coordinate system. Do you see how we could fix that?)
    3. Submit your Python source file to the funcPlot Drop Box in the Homework 6 folder on ANGEL.