It's one of this I just don't tell just to don't be in trouble
12. Display a grayscale .BMP image in three shades – black, gray and white using dithering. Each pixel should be represented by one of three output colors, with color representation error propagating to the next pixel to the right/left in odd/even lines. The error from the last/first pixel in a line should propagate to the pixel above it.
13. Write a date converter recognizing dates written in any common numeric format ([login to view URL], mm/dd/yy, yyyy-mm-dd, with 2- and 4-digit year representations) and printing the dates in a uniform way. The program should be capable of reading dates from a text file containing arbitrary text with other numbers, not only dates.
14. Write a program converting a file into a C language file representing the content as an array of bytes. The C program file should be properly formatted (16 bytes per line, offsets in comments before each 16 lines, total size in final comment.
15. Write a C language source preprocessor supporting the use of unsigned integer constants written in any system with base from 2 to 35. The program should change constants written as 0z<base><digits>, where <base> is a single-digit representation of a base in base-36 system. The output file should contain the same constants represented as unsigned decimal integers.
16. Write an assembly source file preprocessor converting constants from classic assembly style notation (hexadecimal – 123h, octal – 123q) to C-syntax (0x123, 0123).
17. Display a color .BMP image in 8 colors (0 or full range for each primary color) using dithering. Each pixel should be represented by one of 8 output colors, with color representation error propagating to the next pixel to the right/left in odd/even lines. The error from the last/first pixel in a line should propagate to the pixel above it.
18. Write a program reading a monochromatic picture from a .BMP file and displaying its top left corner (64 × 24 pixels max.) on the console using single character per pixel. Choose one, simple .BMP pixel representation (1, 4 or 8 bpp). The program should correctly handle images of any size, also smaller than 64 × 24 pixels.
19. Write a program displaying a smoothly shadowed rectangle of given height, width and vertex colors. Colors of pixels should be interpolated using fixed-point arithmetics (16.16 format)
20. Write a program scanning a valid MIPS assembly file and producing statistics of instructions and directives used in the source program.
21. Display a horizontal color spectrum bar of given dimensions from blue to red - width in range 3..1024, height – 1..1024
22. Turtle graphics. Write a program accepting commands in the form <direction> <steps>, where <direction> is specified as one or two letters (case independent) N, E, W, S meaning North, East, South and West. Drawing color can be set by command C r g b, where r, g and b are decimal numbers representing three primaries. The image should be displayed using a graphic screen output in MARS.
4
23. Collect all the identifiers from a valid C program and determine the minimum number of characters required to preserve their uniqueness. Produce the replacement list and display it. Assume that the minimum length of a modified identifier is equal to or greater than the maximum length of a C language keyword.
24. Write a program replacing all non-ASCII characters in a valid C source file with C-language hexadecimal escape sequences. The program should be capable of producing valid C source from a C program containing non-ASCII characters embedded in strings and character constants.