(29 pts) Complete the ANGEL quiz over the reading for the next session. You'll find this on the CSSE 120 ANGEL page, under Lessons → Homework → Homework 2 → Writing Simple Programs
Note: the due date of all parts of homework, except reading quizzes assigned on a Thursday of any week will automatically be extended to the following Monday, unless otherwise noted. The workload in this course is high, and we want you to have at least 48 hours to complete every assignment. Reading quizzes (on ANGEL) are due at the start of next class. We recommend that you try to complete the programs assigned on Thursday before the next class meeting, but we do not require you to do so.
Day assigned | Reading quizzes due | Other parts of assignments due |
---|---|---|
Monday | Tuesday | Wednesday |
Tuesday | Thursday | Thursday |
Thursday | Monday | Monday |
Note that the due time for all quizzes, programs, and other homework is the same time of day as the beginning of your class meetings.
Do the remaining problems in the 02-InputComputeOutput project that you checked out in class from your SVN repository.
The URL for your repository (that you need to enter into the Add Repository dialog box in Eclipse) is:
http://svn.csse.rose-hulman.edu/repos/csse120-201210-username
where username
is your Rose-Hulman username (like
loaj).
Create new files with the names given in each problem description. Commit your solutions to each problem to your SVN repository, after completing the problem. I encourage you to commit often.
When writing your new programs, follow the style that we modeled in the 02-InputComputeOutput project:
def blah(): '''A short description of the blah function goes here''' BODY of blah goes here def main(): '''Invokes the blah function.''' blah() if __name__ == '__main__': main()
chaosTable.py
chaosTable.py
module.
Run it to make sure it works as expected.math
module as part of your code to calculate the distance between the points. (If you don't remember how to import the math library, see the transcript from Session 1.) You'll find the sqrt
function helpful.