Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Support For Data Mining Applications Discovering Knowledge With Inductive Queries Lnai 2682

Authors: Rosa Meo ,Pier L. Lanzi ,Mika Klemettinen

2004th Edition

3540224793, 978-3540224792

More Books

Students also viewed these Databases questions

Question

What magazine and ads did you choose to examine?

Answered: 1 week ago