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. It should be three columns of tables next to each other just like in the picture.

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

It should look like this: image text in transcribed

sterminateds (exit value o OChem2GradeCalculetor DebuyC/ Application) CAUsers Br --Oct-Dec Hex 61yphoctDe hex Glyph r-0ct Dec--Hex -Glyph 40 32 20 41 33 21101 65 140 9660 43 35:23:-: 105 69 45E145 10165e 46 38 26& 47 39 27 50 40 2811072 48150104 68 51 412911173 49 151 105 69 53 43 2bt 54 44 2c 154 1086 2 55 452d 56 46 56 110 Gen 2e sa 112 : 70 : 60 48 30 61 49 31 62 50 3221 63 51 33 B 64 52 34 4 120 80 121 81Q 122 82522114 123 835S 124 84 54T 125 8555 5 161 2132 163 11573S 164 116 74t 165 1117 75 65 53 355 66 54 36 612686 5666118 76v 127 87 57 130 88 58 X 167 13977w 170 12e , 78 171 121 79 , 67 55 37 78 5638B 71 57 39 9 131 89 59 Y 72 58 73 59 74 60cB 132 9e Sa Z 133 91 5b 134 92 5c 172 1227a 173 123 7b 174 124 7 125 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

Students also viewed these Databases questions

Question

(p1p3)(p4p3)0(p4p1)(p2p1)=0(p3p1)(p2p1)=0 B)

Answered: 1 week ago