Convert Lab 4 so that it takes the integer to draw and the character to draw with from a file. You may assume that the number and character data is correctly formatted inside the file you are reading...

1 answer below »

Convert Lab 4 so that it takes the integer to draw and the character to draw with from a file. You may assume that the number and character data is correctly formatted inside the file you are reading from. The file should consist of several lines each with an integer and a character for drawing with. Your program should draw each integer with the character that occurs on the same line as the integer. An example file with input data would look like this:


42 # 102 X 333 7


And a sample result file from that input data might appear this way:


## ## ## ## ######


## ##


##### ## #####


## #####


XX XX XX XX XX


XXXXXX XX XX XX XX XX XX XXXXXX


XXXXXX XX XXXXXX


XX XXXXXX


777777 77 777777 77 777777


777777 77 777777 77 777777


777777 77 777777 77 777777


Your program will take the name of the input and output file as arguments from the terminal. You should have no cin prompts. All input will be taken from the input file and all output will be written to the output file.


Once you are satisfied with your work you should hand it in on Blackboard. You should submit your source code file, a data file (input), and a result file (output). Make sure you illustrate multiple integer drawings in your program run’s output and that your input data is composed of a file with multiple lines. Your program should work with a data file containing an arbitrary number of lines (determined at run-time not compile-time).

Answered 2 days AfterNov 10, 2021

Answer To: Convert Lab 4 so that it takes the integer to draw and the character to draw with from a file. You...

Neha answered on Nov 12 2021
124 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here