Comp 170 Programming Assignment
give the student practice working with binary file IO. Bitmap files are
being used as a manor of keeping your interest. Just like any file that conforms to a standard
file format, a bit-map file can be read and manipulated as long as the
programmer understands that format.
give the student practice working with C++ structs.
give students practice working with dynamic memory allocation
You will specifically be working with 24-bit bit-map files
made in MSPAINT. Not all bit-map files
are made alike. Depending on the number
of colors and the resolution of the image the bit-map file format will
The specification of the bit-map file format can be found
Remember to only consider the 24-bit version.
for a bit-map file name from the user.
the file. Close the file when
- If the
file does not exist give the user an error message then exit the program.
- If the
file exists give the user the options to:
File Specifications. (The file headers displayed neatly with labels.)
Image 90 deg (clockwise)
Image 180 deg
Image 270 deg (clockwise)
order of all of the pixels in the picture.
salt and pepper
the size of the Picture (Same image, 4 times the pixels)
- Use the
numbers above as the menu options for the user commands.
user should able to perform multiple file operations to a single image
before exiting the program.
good variable names and functions where appropriate.
start with 100 points
points per file operation that does not work correctly
points if the menus do not match the ones given above
points if you forget to check to see if the file exists
will be deducted for poor variable names, function names, and/or poor structure
of the code.