CIS 305 - Dr. Scott Wymer

Contents of Student Class Floppy Disk

This is a listing of links to and descriptions of all of the files that I require you to have on your "disk", i.e. portable media, that you bring to class everyday. For assignment programs or ones you typed in class please have your copies of these programs on your disk in a separate folder. Make sure that the copies on your disk are correct code that will compile, so if you had to correct an assignment after getting feedback please include that corrected copy on your disk. You can name them whatever you want as long as you can find the appropriate file when I ask for it or discuss it in class.

For those programs that are composed of multiple files I may deliver a the files to you as either a zipped file archive (so be sure you know how to deal with a zip file) or you will find a link to a page listing the multiple files. No matter how I deliver it to you you are to keep the files on your disk unzipped all together in a single directory.

 #  File Name Type Description
1 C++ Main File Template template file This is a simple template file for you to save and use to start a new simple one-file programming solution. (This template uses the MS version of libraries and has stdio and string libraries included by default.)
2 C++ Main File Template For Beginning with Classes template file This is a simple template file for you to save and use to start a new simple one-file programming solution that uses classes and objects.
3 Heirarchy Chart Example In-Class Example of a Heirachy chart for a program to manage a Video Store
  hello.cpp In-Class Example of the defining and use of classes.
4 Top_Sales_oo.cpp
Assignment #1
Solution File for Programming Problem #7 in homework #1
5 String_Manip.cpp
In-Class
A quick refresher and guide to string and character array manipulation
6 Geometry.cpp
Assignment #2
Solution File for Programming Problem in Part #1 of homework #2 - Contains algorithm used for menus
7 TopSalesArr.zip Assignment #2
Solution File for Programming Problem redoing the corporate sales program in Part #2 of homework #2 - (This is the full version that keeps the original input order of the divisions but stores the sorted-by-sales order in an array called Rank)
8 TopSalesArr2.cpp Assignment #2
Solution File for Programming Problem redoing the corporate sales program in Part #2 of homework #2 - (This is slightly simpler version similar to what many of you might have done that does NOT keeps the original input order of the items but instead resorts them all as the revenues are sorted)
9
 TopSales_struct.cpp Assignment #3
The Top Sales program using structures instead of parallel arrays
10
FileIOtest.cpp
In-Class
Example Program that we did in class showing text file IO with Arrays
This program also shows how to manipulate strings to dynamically generate file names.
11
 Geometry.zip Assignment #4 The Geometry program from Assignment #2 divided up into multiple files.
12
 TopSales_file.zip Assignment #4 The Complete Corporate Revnue tracking program with menus and File I/O - with added example of ASCII text file IO
13
dynamic_array.cpp
Assignment #5
The Programming Challenge #1 - Asking you to write a function that dynamically makes an array.
14
Video Store Use Case
In-Class
This is an example of a text use case
15
Video Store Class Diagram
In-Class
The example class diagram from the video store program
16
Video Store Sequence Diagram
In-Class Sequence Diagram showing Entering a new video in inventory
17
Video Store Sequence Diagram In-Class Sequence Diagram showing Renting a video to a customer
18
Card_Game_Dealing_Sequence_Diagram.png
In-Class Sequence Diagram showing Starting a Game of Hearts and Dealing Cards
19
Card_Game_Trick_Game_Class_Diagram.png
In-Class Class Diagram for Hearts (or any trick) game
20
OO_Files_templates.zip
 template files
 Templates for: Class Header (.h) and Implementation files (.cpp); and for our OO framework AppClass Files, main.cpp
20
menu_1st_draft.zip
 In-Class Example
The Menu class and an example of its use in a program. This is the incomplete draft that we were developing in class.
21
Menu_Example_Use.zip
Sample Code
A finished example showing how to use menu objects
22
full_menu_use.zip
Sample Code
A small program written in the AppClass framework that shows the use of nested menus
23
 Sample Files
  • Sample file showing how to output the suit characters to the console.
  • Sample file showing how to use a random number generator to shuffle a deck of cards (This is actually a samiple of code that you might see in a "Stack.cpp" file which defines a stack of cards and will have a shuffle method.
(As an exercise to be sure you understand these code just program up a little Card object, make a Stack object to hold an aray of them and then try to implement "display" and "shuffle" methods for the Stack.  (Hint: for display for the stack just have each Card Object call its own display method))
24
Inventory_list.zip
 In-Class Example  Example file from class showing a list class that is used to keep track of the inventory for an array of items.  This example also demonstrates the use of the Appclass programming framework.
25
Inventory_Managment.zip
 In-Class Example  A list class developed using an array of pointers to items to keep track of the inventory for an array of items.  Please note how if the the list class only keeps track of pointers to the items, that the real items it tracks MUST be declared somewhere else outside the list, or they must be built dynamically within the list using the new operator
26
Inheritance Example (inheritance.zip)  In-Class Example Example showing how a base class's member functions and data are transferred to the derived class and how polymorphism works.
27 geometryOO.zip
 HW #10
A first attempt at your Geometry program using OO with a shape class, menu class and programming in the AppClass framework.
28 War.zip
  Sample File  Sample file showing a working card game with a version of the game War
29
lists_with_inheritance.zip
 In-Class Example
Another example of using inheritance and base classes
30  Geometry Code with Inheritance
 In-Class The final and full geometry program using inherited classes, virtual functions and base class pointers.


     

© Copyright Scott A. Wymer, 2002-2007. All rights reserved.