COSC 1: Introduction to Programming and Computation

Course Description

This is a course where I learned to design, write, and analyze code to solve computational problems from a range of disciplines. Please see the official schedule for the project details. The programming language is Python.

Projects Demonstration

Game of Pong

The game has three important behaviors:

  1. If the ball hits a vertical wall, the game is over.
  2. If the ball hits a horizontal wall, it bounces off that wall.
  3. If the ball hits the inner face of a paddle, it bounces off the paddle.

Each paddle is independently controllable. Six keys on the keyboard control the game:

  • a moves the left paddle up.
  • z moves the left paddle down.
  • k moves the right paddle up.
  • m moves the right paddle down.
  • The space bar starts a new game.
  • q quits the program.

The paddles should never leave the playing surface. While a paddle is touching the top wall, it cannot go up, and while a paddle is touching the bottom wall, it cannot go down.

screenshot of the game in progress

Display of the Movements of Bodies in the Solar System

Finding the Most Populous Cities in the World from a File and Visualization