Python Mini Projects

Background project that can help you learn Python are listed below. doing the projects in sequence is recommended.

  1. Quadratics - Uses the quadratic formula to find roots of quadratic equations. Makes heavy use of parameter checking and conditional execution.
  2. Windchill - Uses looping structures to build a table of windchill factors for various temperatures and wind speeds.
  3. Dice - Uses python lists to simulate rolling dice and prints a frequency chart showing what the most likely rolls will be.
  4. Fractions - Uses string manipulation to adds fractions and outputs the answer using the lowest common denominator.
  5. Conway's Life - Uses the PyGame graphics libraries to implement Conway's Cellular Automaton simulation.
When your code is working, simply raise your hand and demo it for me. Once I approve your code, you can begin work on your project write-up. The writeup provide simple explanation of your project. A sample writeup is attached below.

 Written Code Reviews

After you submit the final code for your assignment you must prepare and submit a written code review document. The code review must include the following sections.
  1. A short description or overview of what the program does.
  2. A reasonable sample of the input and output of the program when it's run. Be sure the illustrate the significant behaviors of the code, including valid inputs, invalid inputs, error messages, and outputs.
  3. A description of the major portions of the code, with code blocks included. Explain what your code does.
  4. A comparison and contrast analysis of your code against sample code that I provide.
  5. A short discussion about the major challenges you faced when writing the program and a list of changes you would make to the program to improve its functionality, or readability.
  6. A complete listing of your code and the sample code.
A sample code review document has been attached below.

Nikhil Joshi,
Oct 17, 2014, 12:21 PM