Question: 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!