Question
Characters for the ASCII Codes Write a program that uses arrays to create the ASCII table for ASCII codes 32..126. The output of this program
Characters for the ASCII Codes Write a program that uses arrays to create the ASCII table for ASCII codes 32..126. The output of this program should log the formatted ASCII table to a file, hw03_p1.log. The required main function is provided below. Your assignment is to declare the function prototypes and implement the functions buildTable and printTable.
buildTable a function to create the ASCII table by using two one-dimensional arrays. The first array stores the ASCII symbols and the second array stores the corresponding ASCII values. Both arrays have the same number of elements, so the last argument of this function specifies the maximum size for both arrays.
printTable a function to output the ASCII table to the specified output file stream object. The first parameter of the function is a reference to the output file stream object. The second and third parameters of the function are the two arrays used in buildTable. And the last parameter is the size of the two arrays.
basically I have to create set with 5 columns that displays ASCII characters with its corresponding numbers. BY USING FUNCTION AND ARRAY
Example Display
[ - 32] [! - 33] [" - 34] [# - 35] [$ - 36]
[% - 37] [& - 38] [' - 39] [( - 40] [) - 41]
[* - 42] [+ - 43] [, - 44] [- - 45] [. - 46]
...........
Helpful code
ze of the two arrays. int main) ofstream outputFile; outputFile.open ("hw03 pl.log")i /* @todo add code to check for file creation erz const int MAX SIZE 95; char symbols [MAX SIZE];.. // ASCII symbols int values [MAX SIZE]// ASCII values buildTable (symbols, values, MAX SIZE) printTable (outputFile, symbols, values, MAX SIZIE outputFile.close () return 0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started