I recently wrote this program for my C++ class. While I don't see much
practical purpose for the program itself, it does display my current
ability with the language. The program contains several functions, which
when run together, ask the user for 5 integers. Then it shows the
unsorted list of numbers to the user. It then sorts the integers in
descending order and displays them to the user. Next, the program finds
the average of the 5 numbers and displays it. Finally, the program
displays all integers entered that are within 10 of the average.
If you'd like to view this program for yourself,
click here to download. |
I also wrote this program for my C++ class. This program allows the
user to input more than one data type in order to create a structure,
or record, of information. Names, their scores, and letter grades are
entered together and will later be sorted and shown together. It uses a
menu system to give the user options, which are to input information;
show the names, scores, and letter grades; find the average of the
scores, save it, or load it. When the user chooses to show the data, it
is automatically sorted beforehand.
If you'd like to view this
program for yourself, click here to download.
|
|