CSCI 3342 Submission 01
Displaying ASCII Characters and Codes, Part 1
Supplied file(s) |
$sup01/demo_display_ascii1 (the demo executable)$sup01/display_ascii1.txt (the "TextItems" file containing
program information )$sup01/my_tests_partial.sh (a partial testing script for
the executable)$sup01/display_ascii1_shell.cpp (a starter shell program
for your source code)
|
---|---|
Files to submit |
display_ascii1.cpp (your source code) display_ascii1 (your executable) my_tests.sh (your completed testing script, with additional tests)
|
Where to put them |
Copy them to your u##/submissions/s01 subdirectory.
|
When they're due | Sun, Jan 26, 2025 @11:59pm |
A summary of coding style rules and guidelines to which you should pay close attention is given in Style Rules, and the course policy on cheating (to which you should also pay close attention) is given in Policy on Cheating.
This first submission is Part 1 of a three-part submission, with each of the later parts building upon the earlier ones. This one is designed to get you "up and running" with basic C++ programming. By the time you submit your final version of the required program for Part 3 (Submission 03), you should be quite comfortable with our Linux development platform and the course submission procedure, and if you are not already a Vim user I hope you will be well on your way to becoming one by then as well. In addition, this first submission will jump-start the (necessarily ongoing) process of your familiarization with the details of the C++ programming language, and how it is similar to, and different from, the Java programming language.
We will discuss in class and/or lab everything that you need to know for this submission. We will likely discuss other things as well. Do not think that everything we discuss needs to be applied to this submission. Also, do not think that you will have to go cruising around the web to find something you need to know. More important will be to "tune in" to our Zoom sessions,pay close attention to the presentation, and do lots of follow-up practice.
This week's required program itself does something relatively simple. It just displays user-chosen ranges of ASCII characters, using a certain output format. Along with each character in the range, the decimal, octal and hexadecimal numerical codes for each character are also displayed. The thing requiring the most thought will be getting the output format in the required form.
You are provided with a "shell" program, which outlines the basic structure that your code must follow. It also contains some pseudocode which should be helpful, and thus this shell provides you with an excellent starting point for your program development. You are getting all of this because this is the first submission. In subsequent submissions you will not be given this kind of detail, but you will be expected to follow the pattern shown here for all later assignment submissions.
Note in particular the format and behavior of the pauses at the ends
of the opening screen and the information screen. These will happen
automatically when you use the instructor-supplied function and class
to display these two screens. The line containing the date and time of
the executable build is also produced automatically when you use the
DisplayOpeningScreen()
function.
my_tests_partial.sh
in an editor and note how it is structured to do the testing. Then run the
script, observe the output, and reconcile what you see when you do this
with what you saw when you looked at the script. We have supplied you with
this testing script, to which you are required to add some tests of your
own. The takeaway here is that you should always have such a testing
script and we will often require that such a testing script be a part of
the submission for an assignment, as it is for this one. [It's important to note that the supplied testing script runs demo_display_ascii1, so to test your own executable, namely display_ascii1, you will have to change the name of the executable in the testing script.]
All comments that start with //--
are meant to be deleted
after you do whatever the comment says to do.
fcc
command that will be very helpful
with your formatting.
uxx
account.
Because this is the first submission, this last section of the description contains more informational reminders than are likely to be present for any subsequent submission.
main()
function. So ... don't worry about creating any
other functions, and spend your development time instead on getting the
program to produce the right output in the correct format.
DisplayOpeningScreen()
function to display your first screen when your program runs with no
command-line input. You must also use the instructor-supplied
TextItems
class and display_ascii1.txt
textfile
to display the second screen. And finally, you must use the supplied
Pause()
function to get your program to pause in the correct
places.