Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

Simplify using exponent rules, (5ab22a5b4)

Answered: 1 week ago