CMSC201 Programming Hint

How can you map values between 0 and 255 into the eight characters to be printed? Consider first mapping the integer values into the range 0 - 7. Using integer divide will do nicely. Then use a switch to map 0-7 into the characters.

Be sure that your program is robust in that it will gracefully handle unexpected input values.

Think about where is the best place or places to do this.