In this homework, students are asked to write a simple ASCII code printout program. Your program must use a subroutine called getchar (see more details below) to read one character from the keyboard and printout a binary number of the ASCII code of the character that has been typed in.
For example, if you type "A", the program must print out "01000001" since the ASCII code of "A" is 0x41 (base-16) or 65 (base-10).
You can try an example program to see the output by running:
/home/natawut/hw1Note that when the program waits for your input, you can type in one character and you must press an "Enter" key.