Write a C program that builds the ASCII table, which is reproduced below for reference. Print three sets of columns as shown in the table. Your program should first print out the column headings. It should then print out the octal, decimal, hexadecimal and character versions of the ASCII characters from 32 to 126 (decimal), as indicated in the table. You do not need to print the binary version. Use a loop and an integer variable(s) when generating the table. Note that the columns in an ASCII table typically run vertically and not horizontally.
Grading Rubric Turning in a program that does not print the ASCII table, -100 points
Turning in a program that does not have 3 columns, -40 points
Turning in a program that does not have the third column correct (no listing in the last row), -10 points
Turning in a program without the header comments, -10 points
Turning in a program without the header print, -10 points
Turning in a program without judiciously selected comments sprinkled throughout, -10 points
ASCII Table:
Binary
Binary
iex
Glyph
Binary
bec
Glyph
0100000
0000
40
@
1100000
0100001
3c
21
1000001
65
41
A
1100001
g
51
0100010 147
34
42
B
1100010
b
0100011 145
35
23
43
c
1100011
c
0100100 16
44
D
100100
04
0100101 14
%
010
45
E
1100101
0100110 14
40
46
0100111
47
G
10011
3
010 1000
48
010 1001 15
49
101001
50
010 1010
4A
101010
010 1011
2E
48
10101
68
010 1100
20
10
50
010 1101
20
110
4D
M
10110
010 1110
4E
010111
4F
11
0110000
11
0110001
51
110010
52
0110011
3
53
S
0110100
54
0110101
55
11
110110
56
0110111
57
YV
1110111
59
11-100
19
111010
5A
111010
111011
5B
1111011
78
5C
11111
70
111101
D1
5D
1111101
111110
5E
111111 17
3F
5F