Kayser Raei's Projects
Compute office area in square feet and square meters, plus monthly cost in eurodollars. Precise prompts and output format. Example run in officeRun.png. Euro symbol: β¬. Conversion: 0.092903. Cost per sq meter: 21.10β¬.
Python program managing standard playing cards. Features include creating a deck, shuffling without altering the original, and dealing to specified hands. Card representation utilizes string abbreviations. Functions adhere to precise parameters and returns.
Determine chessboard square color and validity. Implement check_valid_row() and check_valid_column(). Write black_or_white(row, column).
Python program for calculating monthly electric bills. Input supply and power delivery charges, and kilowatt-hours used. Example run included. Format total bill in dollars-cents (USD).
A Python program for text transformation, translating English words into Western or Kaomoji emojis. Handles metadata, supporting flexible column positions. The batch_translate function orchestrates the transformation based on directives, providing versatility. Exception handling ensures graceful operation even with unexpected files.
Manages reservations for intergalactic travelers renting an apartment on Earth. Utilizes Python to load traveler data, process booking requests, and generate a bookings file. Ensures financial integrity and adaptability to different data structures. Minimalistic output confirms successful processing.
Create an interactive program using Python Turtle. Draw a circle with a radius of 80 at (0, 0) in green. Register mouse clicks to erase the circle within its square boundary or draw it at the clicked position outside. Optional: Use PositionService for data management. Consistency in turtle movement is crucial.
Single-player MasterMind game featuring a colorful UI with guess buttons, scoring pegs, and a leaderboard. The player tries to guess a randomly generated 4-color code in 10 attempts. Leaderboard stores best scores. Intuitive design with visual cues for errors, wins, and losses, offering an engaging gaming experience.
PokΓ©mon tournament with Rock-Paper-Scissors rules. Players select from a list of PokΓ©mon, and the game handles automatic selection, RPS choices, and determines the tournament winner based on rounds won by the human or computer team.
Use Turtle to render an app window with a square and an inscribed circle. Allow user input for new positions, redraw shapes in the specified locations.
Python program for song remixing. Substitute words, reverse song, playback, reset, load new songs, and view current title. Handles punctuation and features user-friendly interactions. Flexible for any playlist size, with unit tests and good code structure.
Python program, runlength_decoder.py, decompresses run-length encoded data from hw4data.py. The decode() function expands encoded runs, providing a clear representation of the original information.
Implements a SimpleFraction class for managing rational numbers with operations like multiplication, division, and reciprocal creation. Supports integer validation, string representation, and PyUnit testing for functionality verification. Compatible with text and Turtle presenters for diverse visual representations.
Practice Celsius to Fahrenheit and Fahrenheit to Celsius functions using starter code. Create readable test functions and main(). Use if name == "main" to protect against inadvertent runs. Focus on clear, visual output.
Python program for UPC barcode validation. Determines the validity of a given list of integers representing a UPC. Applies a specific algorithm, checking if the result is a multiple of 10. Handles various UPC lengths and includes a special case for short or all-zero inputs.