Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

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

image text in transcribed

ASCII Table: Binary Oct Dec Hex Glyph Binary Oct Dec Hex Glyph Binary Oct Dec Hex Glyph 010 0000 040 32 20100 0000 100 64 40 110 0000 140 96 0' 010 0001 041 33 21I 010 0010 042 34 22 01000110433523 # 010 0100 044 36 24 010010104537 251 010 0110 046 38 26 & 010011104739 27 . 010 1000 050 4028 100 1000 110 72 48 H 110 1000 150 104 68 h 010 1001 051 41 29100 1001 111 73 49110 1001 151 105 69 i 010 1010 052 42 2A100 1010 112 74 4A1 010 1011 053 43 28 010 1100 054 44 2C 010110105545 2D 010 1110 056 46 2E 010 1111 057 47 2F / 0110000060 48 :30 | 0 | 1010000120| 80 | 50 | P | | 111, 160 112| 70 011 0001 061 49 311 011 0010 062 50 32 2 011 0011 063 51 33 3 011 0100 064 52 344 011 0101 065 53 35 5 101 0101 125 85 55 U 1 011 0110 066 54 36 6 101 0110 126 86 56 011 0111 067 55 37 7 011 1000 070 56 38 8 011 1001 071 57 399 011 1010072 58 011 1011 073 59 3B 100 0001 101 65 41 100 0010 102 66 42 100001110367 43 100 0100 104 68 44 D 10001011056945 E 100 0110 106 70 46 F 100 0111 107 71 47 G | 1100001 141 97 611 110 0010 142 98 62 b 110001114399 631 110 0100 144 100 64d 110 0101 145 101 651 110 0110 146 102 66 f 110 0111 147 103 67 % 10 1010 152 106 6Aj 110 1011 153 107 6B k 100101111375 4 100 1100 114 76 4C L 110 1100 154 108 6C 100 1101 115 77 4D M110 1101 155 109 6D m 100 1110 116 78 4E N 110 1110 156 110 6E 101 0001 121 81 511 111 0001 161 113 71 q 101 0010 122 82 52 R 111 0010 162 114 72 r 111 0011 163 115 73s 101 0100 124 84 54 T1110100 164 116 74t 111 0101 165 117 75u 111 0110 166 118 76 v 101 0011 123 83 53S 101 0111 127 87 57 W 111 0111 167 119 77 101 1000 130 88 58 X 101 1001 131 89 59Y 101 1010132 90 5A Z 101 1011 133| 91 | 58 [ | 111 1011173 1237 111 1000 170 120 78x 111 1001 171 121 79 111 1010 1721 1227! : { 011 1101 075 61 3D101 1101 135 93 5D 101 1110 136 94 5E 111101 175 125 7D

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago