Skip to content

ozcanceliksf/python-programming-cop2002

Repository files navigation

COP2002 — Programming Logic

Santa Fe College · Spring 2026
Student: Ozcan Celik


Course Overview

Python-based programming logic course covering variables, data types, control flow, loops, functions, lists, file I/O, and object-oriented programming.


Exercises

# Title Concepts
Exercise 2 Variables & Personal Info Variables, string formatting, arithmetic
Exercise 3 UNO Card Color Identifier If/elif/else, lists, random, string methods
Exercise 4 2025 IRS Tax Calculator Functions, loops, arrays, conditionals
Exercise 5 Random MAC Address Generator While loops, string building, random

Highlights

🧮 IRS Tax Calculator (exercise4.py)

Calculates simplified federal income tax based on 2025 IRS Single filing brackets.

  • Implements 7 tax brackets using parallel arrays
  • Uses a while loop to find the correct bracket
  • Formatted output with commas and 2 decimal places
2025 Simple IRS Calculator
--------------------------
Enter your yearly income: 75000

Annual Income: $75,000.00
Tax Rate: 22%
You Pay: $16,500.00

🌐 MAC Address Generator (exercise5.py)

Generates a random valid MAC address using nested while loops.

  • Picks from hex digits 0-9 and A-F
  • Builds 6 pairs separated by colons
Generating random MAC address...
A3:7F:2C:91:BE:04

🎴 UNO Card Identifier (exercise3.py)

Randomly selects a card from a full UNO deck and identifies its color or wild status.

  • Uses split() to extract color from card string
  • Handles wild cards (WILD, +4) separately

Topics Covered

  • Variables and data types
  • String formatting (f-strings)
  • If / elif / else statements
  • While loops and for loops
  • Functions and return values
  • Lists and indexing
  • File I/O and exceptions
  • Classes and objects
  • Random module

Tools

  • Python 3.x
  • VS Code

About

Python Programming Logic - COP2002 Santa Fe College

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages