CSSE 120 -- Intro. to Software Development

Homework 5

  1. Complete the assigned reading for the next session, Zelle sections 5.1- 5.7, 5.9 (skim 5.8 as reference).
  2. (26 pts) Complete the Angel quiz over this reading. You'll find this on the course Angel page, under Lessons → Homework → Homework 5 → Graphics and Objects
  3. (30 pts) File output and string formatting: Storing information in files is a very important exercise for engineers running experiments that generate a large quantity of useful data.  The stored data can later be analyzed, categorized, and manipulated to allow engineers to draw useful conclusions. 

    Often, the generated data is formatted so that another program can automate the process of analyzing, categorizing, and manipulating the data. In this problem you are to write a program, funcDump.py, that implements the following design:

    Submit your Python source file and the generated output to the funcDump Drop Box in the Homework 5 folder on ANGEL.

  4. If you didn't do this for bonus points last session, you need to do it now (for no bonus)... In session 6, we will begin using a new development environment called PyDev that runs inside Eclipse.
    1. Install and configure Eclipse, with PyDev, C, and Subclipse plugins installed already. (Upperclassmen need to do all the steps; freshmen just need to configure it, so can skip to step 3.) Instructions.
    2. To get your bonus points, during session 5 you will do the following:
      1. Launch Eclipse and show us your "Hello World" Python program running.
      2. In Eclipse, show us your modified "spam.py" file that you checked out using Subclipse. If you didn't get this working, instead choose Window > Open Perspective > Other..., and show us that "SVN Repository Exploring" appears in the list.
  5. (10 pts) Challenge Problem: This problem is not required, but is an interesting extension that you might like to try.
    1. Create a version of funcDump.py that prompts the user to enter the function for column 2 instead of hard-coding the function.
  6. If you found this homework to be short, you can get a jump on next session's, which is a bit long.
  7. Web links, bacon, eggs, and spam: One of today's in-class examples was a reference to the Penguin sketch. We hope you enjoy this four minute cultural experience!