Michael B. Gousie - Wheaton College, MA

Comp 115 - Problem Solving and Python (Summer 2021)

General Information

  • Syllabus

  • Google Meet Synchronous Class
    Class Tue-Fri 9:30-12:00

  • Codecademy - a web site where you can learn and practice Python coding.
  • HackerRank - another place to practice your Python skills.
  • CodingBat - yet a third site to practice; note that these examples don't print the results (they "return" them instead) and that many need at least IF statements.

Python Resources

Videos

Projects/Homework

In-Class Examples

  • one.py - first module (program)!
  • numsCh2.py - easy numbers example: calculate MPH from feet/minute
  • stringCh2.py - module showing string manipulation.
  • mathCh3.py - square root and rounding example without using built-in round() function.
  • formatCh3.py - shows how to format numbers.
  • firstGraphics.py - basic program using graphics library.
  • secondGraphics.py - shows graphics through a bar chart displaying student grades.
  • nameboxCh5.py - displays a name centered in a graphics rectangle.
  • nameGraphics.py - similar to above, but uses the mouse for placement and pausing the window.
  • string2Ch5.py - using strings to display a name input in First Middle Last format.
  • filesCh5.py - small example using files for input and output.
  • scores.txt - input file for above program.
  • guessgameCh7.py - guessing game using selection statements.
  • leapyear.py - one solution to the leap year problem. Many other versions could work as well.
  • threeCharsCh8.py - using a loop to display every third character input.
  • mult.py - example showing nested for loops to generate a multiplication table.
  • median.txt - a list of values for the median problem.
  • median2.txt - another list of values for the median problem.
  • findMedian.py - using loops and a file to find the median of a list of positive values ending with a 0.
  • beersong1.py - first attempt at using a function to sing a song.
  • beersong2.py - working version of song program.
  • channel.py - program simulating silly TV showing the use of functions.
  • power.py - solution to in-class function problem.
  • airPollution.py - solution to in-class air pollution graphing problem.


Last updated

Home | Comp 115 | Research | Anti-Research