Homework Assignment Number 1
- Install Python 3 for home computer or laptop (preferred) unless
you plan on only using the lab computers. Follow the website's
instructions for Windows or MAC operating systems.
- Load the program IDLE, the interactive program for running Python
and test it. Do variations on the following, just to make sure you can
get IDLE to work (Do not hand this in):
- 2 + 2
- 3 - 1
- print(3 - 1)
- print('Hello World')
- Read the 1st chapter of the Donaldson book
- Write a simple algorithm using pseudo code or a flow chart
(similar to the PBJ algorithm). Only write one algorithm with the
purpose of showing that you understand what an algorithm is. Some
examples of algorithms you could write:
- Preparing a specific non-alcoholic or alcoholic mixed beverage: chocolate milk, ice cream soda, Martini, ...
- Preparing a bowl of cereal with milk or fruit
- Instructions for gluing sticks on a piece of paper to make a stick figure
- Building a house out of blocks
Grading Criteria of Algorithm (4 above):
- Is your description adequate? Would an idiot (a robot or
computer) be able to follow your instructions?
- Does the algorithm make choices? Are steps repeated?
– For example, the PBJ algorithm keeps checking if there is
enough peanut butter. If there is enough the algorithm
advances, if not it repeats the process. [Here there is a
choice and a repeat]
- Cleverness, innovation, creativity is worth more points
- More detail is worth more points.