Question: Please write a C PROGRAM to output the number 77D(the last two numbers and letters in student ID number),but not 99Z ,by changing the numbers
2 Lecture 10 showed how to apply bitwise operators to extract the individual bits that make up any given integer. By modifying the source code of the function displayBits from the leture create a new function displayBitsAsCharacter whose prototype is void displayBitsAsCharacter (unsigned int value, char fillcharacter) It should print the binary representation of value as one contiguous line of tex, where ev ery 1-bit is shown as the character f111Character and every 0-bit as a space. (Do not insert a space after every eighth bit as in displayBits) As an example, when using your function displayBitsAsCharacter, the code segment unsigned int art 1301 50655, 207820806. 207820812 132249624. 6297648 207820896 130150655 / size_ t nr,of.rovs Blzeof (art) sizest'art[0]); for (i-0;1 BE.of rows +) displayBitsksCharacter Cart() (Continued ) XIXX IXEX XIII xX XX X I XX X I IX XIXI LI IX The source code of the original version of displayBits can be found in http://ww.deitel.com/bookresources/chtp8/examples.zip under examples/ch10/fig10.07.c For the sample output part of this question, change the numbers in the array art[) in the code segment above so that the code outputs a readable graphical representation of the last two digits and the final letter in your student ID umbr Use any method you like to find such numbers There are no restrictions on the artistic style. (2 marks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
