Question
(Language is C) Design a program that prints a dot matrix image on the console using the asterisk * and space characters in an 8x8
(Language is C)
Design a program that prints a dot matrix image on the console using the asterisk * and space characters in an 8x8 matrix. Each horizontal row of the matrix is represented by an 8-bit integer. Eight rows together make up the vertical columns. Therefore, the complete image can be represented with a single 64-bit integer (8 rows x 8 columns = 64).
Consider the 64-bit image 0x10387cfe38383800: Loop 1 (start at row 0, byte 0): Isolate the lowest byte: 10387cfe383838 00 (byte 0) Loop 2: (start at Column 0, bit 7): Isolate the highest bit 0 000 0000 (bit 7) Is it a zero? Print a space. Is it a one? Print an asterisk. (Repeat for columns 1-7 using bits 6-0) (Repeat for rows 1-7 using bytes 1-7)
Modify your code from Part 1 such that it can print any letter (upper or lowercase) that the user enters.
Check your Output
o Works with any supported letter or symbol
o Works with mixed case letters
o Asks the user to try again if there is an error in the input
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started