CSSE 120 -- Intro. to Software Development

Homework 3

Reminder: readings and quizzes are always due in class, and everything else is due at least 48 hours after it is assigned. Sometimes, other things will be due in class, so we can check them off. (For example, the Eclipse Bonus below is due at the start of Session 5.)

  1. Complete the assigned reading for the next session, Zelle, §3.4–4.3.
  2. (29 pts) Complete the ANGEL quiz over this reading. You'll find this on the course ANGEL page, under Lessons → Homework → Homework 3 → More Types, Strings and Lists
  3. (10 pts each) Finish the pair-programming exercises you started in class: factorial.py and barchart.py, and upload them to the corresponding drop box on the course ANGEL page under Lessons → Homework  → Homework 3.  For each of these, only one student from your pair should submit it.  Put both student's names in a comment at the beginning of your Python file.  In addition, put both student's names in the title of your submission to the ANGEL drop box.
  4. (10 pts) Complete Programming Exercise 2.4 on page 49 of Zelle. Name your program conversion.py. Edit the comments at the top of the program to appropriately describe how the program behaves. Be sure to include your name in the comments as the author of conversion.py. You do not have to include results from running your program, just your code.
  5. (10 pts) Complete Programming Exercise 3.2 on page 72 of Zelle. Again include appropriate comments. Name your program area.py. Your program should:

    1. Prompt the user to enter the diameter and price of the pizza.
    2. Use the math module to get the value of pi. (If you don't remember how to import the math module, see the transcript from Session 1.)
    3. Display the cost per square inch, with a descriptive label.
  6. Turn-in instructions:

    1. Find the drop boxes on the course ANGEL page, under Lessons → Homework → Homework 3
    2. Upload your:
      • conversion.py file, and
      • area.py program

      to the corresponding drop boxes on ANGEL.

  7. Bonus (10 pts), due at start of Session 5. In session 6, we will begin using a new development environment called PyDev that runs inside Eclipse. Freshman laptops have some of these steps done, as noted below. You'll have to do this for session 6 anyway; doing it early gets you the bonus points:
    1. Install Eclipse by following these instructions. (Upperclassmen need to update to Eclipse 3.4; freshmen can skip this.)
    2. Install and configure PyDev for Eclipse by following these instructions. (Upperclassmen need to do all of this; freshmen can skip the beginning and start at step 3 of Install the PyDev plug-in for Eclipse.)
    3.  Install and configure Subclipse for Eclipse by following these instructions. (Everyone needs to do this.)
    4. 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.