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).

(Language is C) Design a program that prints a dot matrix image

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!