Hw4
Homework 4
Binary Numbers, Images
Submission
Submit your solutions to Moodle.
Homework Problems
These problems investigate different representations for various data and the conversions between them…
- Reading [5 points; individual]
(hw4pr0)
- Lab Problem/Problem 1 [30 points; pair]
(filename: hw4pr1.py)
- Problem 2 (Base to Base) [35 points; pair]
(filename: hw4pr2.py)
- Problem 3 (Binary Image Compression) [30 points; pair]
(filename: hw4pr3.py)
- Problem 4 (Image Processing) Optional Challenge [up to +10 points; individual or pair]
(filename: hw4pr4.py and up to three .png image files)
Keep in mind that Python does offer its own conversion functions, though only for its built-in types:
- str(anInteger) is a function that takes an integer as input and returns the string version of that integer
- int(aString) is a function that takes a string of digits as input and returns the integer version of that string.
Back to the CSCI 203 home page.