CSCI 3342 Submission 02
Displaying ASCII Characters and Codes, Part 2
Supplied file(s) |
$sup02/demo_display_ascii2 (the demo executable)$sup02/display_ascii2.txt (the "TextItems" file containing
program information)
|
---|---|
Files to submit |
display_ascii2_main.cpp (the source code for your main
driver)display_ascii2_functions.cpp (the source code for your
auxiliary
functions)display_ascii2 (your executable) my_tests.sh (your testing script)
|
Where to put them |
Copy them to your u##/submissions/s02
subdirectory.
|
When they're due | Sunday, February 2, 2025 @11:59pm |
This second submission is Part 2 of our three-part exercise, and in addition to enhancing the previous submission with an additional alternate way of displaying the ASCII output, you must now create some functions to perform the various necessary tasks and place those functions in a separate file that will be separately compiled and linked with the compiled main driver to form the complete final executable.
We will discuss in our sessions any additional material you will need or might find helpful to know for this submission.
This second version of the program again displays ranges of ASCII characters
requested by the user, along with their corresponding decimal, octal, and
hexadecimal numerical ASCII codes, this time in two different formats (one
format is the same as last week's). You will again make use of the
DisplayOpeningScreen()
and Pause()
"free
functions" from the instructor-supplied utilities module, as well as the
TextItems
class, all for the same purposes as before.
You are not provided with a "shell" program this time around, so you should
refer to the shell from the previous program and use the same overall
structure, including the comments at the beginning, the self-assessment
comment, and the position of your include files. The major addition this
time to your main driver file (display_ascii2_main.cpp
) will be
the prototypes of the functions whose full definitions will go into your
display_ascii2_functions.cpp
file.
demo_display_ascii2
, as well as a copy of its companion
program information TextItems
file,
display_ascii2.txt
.
uxx
account. Do not use the submission directory as a
working directory.
display_ascii2_functions.cpp
file? The display of
the opening screen and the two information screens are possible
candidates, but both of those are handled by a very short if-statement so
that code might as well remain in display_ascii2_main.cpp
.
That leaves three obvious choices: one function to handle the
error-checking, a second to handle the "horizontal" ASCII display, and a
third to deal with the "vertical" ASCII display.
my_tests.sh
) should follow the
same pattern as last week, but of course it is important to note that this
time around each range of characters and their corresponding codes can be
displayed in two quite different ways (increasing horizontally, or
increasing vertically), so your testing script must take account of this.