Question: I need this assignment done in C Programming And please provide me complete working code And also screenshot me the output please. Also below i
I need this assignment done in C Programming
And please provide me complete working code
And also screenshot me the output please.
Also below i have provided code you just have to edit it

this the strrender.c file where you can edit the code


this the generate-fontfile

Exercise 1. (50 points) strrender Very often, computers display a character on screen as a matrix of tiny dots, called pixels. For the purposes of this exercise, you can consider a pixel has either the background color or the font color (the color of characters), and we will use(space) to display pixels that have the background color and'*for the ones that have the font color A font file specifies how each character should be displayed. The font file you will be using is font8x8.dat, which can be generated by running generate-fontfile. This font displays each character as an 8x8 dot matrix. A row of 8 pixels can be stored in a byte, with each pixel stored in a bit. If a bit is 0, the pixel has the background color. Otherwise, the pixel has the font color. The left most pixel in a row is stored in the right most bit, and the right most pixel in the left most bit. The following example shows how a row is displayed Bits in the byte: Bits reversed: Characters (pixels) to be displayed: * 11101101 10110111 Since each dot matrix has eight rows, the entire 8x8 matrix can be stored in 8 bytes. In font8x8.dat, starting from the beginning, every 8 bytes group is the matrix for a character. The first matrix is for character '\x00', which has ASCII value 0, the second one is for character '\x01', which has ASCII value 1, and so on. The file has the information for characters from x00 to x7F' (ASCII value 127). Study generate-fontfile.c for details on how the font file is written. Complete the functions in strrender.c. The program uses'and 'as pixels to display a string on screen. The string is the first argument passed to the program (argv[1]). If the string is long, t is displayed in multiple lines. A line displays up to NUM_CHAR_PER_LINE characters in the string. NUM_CHAR_PER_LINE is defined as 8 in the template file. In the following example, the first 8 characters are on the first line and the remaining 7 characters are on the second line $./strrenderHello-CSE3100 k* k* k* k* k* k* Exercise 1. (50 points) strrender Very often, computers display a character on screen as a matrix of tiny dots, called pixels. For the purposes of this exercise, you can consider a pixel has either the background color or the font color (the color of characters), and we will use(space) to display pixels that have the background color and'*for the ones that have the font color A font file specifies how each character should be displayed. The font file you will be using is font8x8.dat, which can be generated by running generate-fontfile. This font displays each character as an 8x8 dot matrix. A row of 8 pixels can be stored in a byte, with each pixel stored in a bit. If a bit is 0, the pixel has the background color. Otherwise, the pixel has the font color. The left most pixel in a row is stored in the right most bit, and the right most pixel in the left most bit. The following example shows how a row is displayed Bits in the byte: Bits reversed: Characters (pixels) to be displayed: * 11101101 10110111 Since each dot matrix has eight rows, the entire 8x8 matrix can be stored in 8 bytes. In font8x8.dat, starting from the beginning, every 8 bytes group is the matrix for a character. The first matrix is for character '\x00', which has ASCII value 0, the second one is for character '\x01', which has ASCII value 1, and so on. The file has the information for characters from x00 to x7F' (ASCII value 127). Study generate-fontfile.c for details on how the font file is written. Complete the functions in strrender.c. The program uses'and 'as pixels to display a string on screen. The string is the first argument passed to the program (argv[1]). If the string is long, t is displayed in multiple lines. A line displays up to NUM_CHAR_PER_LINE characters in the string. NUM_CHAR_PER_LINE is defined as 8 in the template file. In the following example, the first 8 characters are on the first line and the remaining 7 characters are on the second line $./strrenderHello-CSE3100 k* k* k* k* k* k*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
