Question: for C++ Characters for the ASCIl Codes Write a program that uses arrays to create the ASCIl table for ASCII codes 32..126. The output of

 for C++ Characters for the ASCIl Codes Write a program that

for C++

Characters for the ASCIl Codes Write a program that uses arrays to create the ASCIl table for ASCII codes 32..126. The output of this program should log the formatted ASCIl table to a file, hw03_pl.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 ASCIl 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 ASCIl 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. int main() ( ofstream outputFile outputFile.open ("hw03 pl.log"): /*etodo add code to check for file creation error */ const int MAX SIZE95 char symbols [Max sizE]; // ASCII symbols int values [MAX_ SIZE]// ascII values buildTable (symbols, values, MAX_SIZE) printTable (outputFile, symbols, values, MAX SIZE) outputFile.close) return 0; Sample output % hw03_p1 % cat hwo3_p1. log [ -32 ] ['-33] ["-34] [#-35] ($-36] 837] [&3 [ - 39] [40] 41] 42] [+43] [- 44] [45] [. - 46] /47] [04 [149] [2 501 [3 511 452] [5 -53] [6 54] [7-55][856]

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!