C++ Projects

Employee Database using Visual Studio

This 4 different iterations of an employee database I created through Microsoft Visual Studio. The purpose of the assignment was to teach us new ways of developing logical stuctures through variations of code. The first example uses simple "cin" and "cout" commands within a looping structure to attain the employees' information. It then outputs it onto the screen through a "cout" command.

Source Code

Project1Screen

Functions

This next iteration utilizes modular design principles. I declared and defined an employee class and set up the main loop to recieve and output the employee information yet again.

Source Code

Modules and Namespaces

This one impliments seperate compilations (i.e. seperate header file and seperate source file). In accordance, I've also utilized appropriately scoped identifiers as well as namespaces. I started with a header file that declared the employee class (Header1 Code). I then created another header file that would declared an employee pay class (Header2 Code). After these two header files were compiled, I moved on to program two source code files that were connect to each header file respectively. One was in charge of defining an employee object (Source Code1) and the other defined the employee pay (Source Code2). Finally, I connected all of these files together with a main source code file that initiated a loop that took the employee info from the user and output on the screen (Source Code Main).

Entire Project3.zip

Objects and Classes

This final version of the employee database included a solid foundation of object-orientated programming. As with the previous version, I was given the task of having seperate compliations. This time, however, I divided the program into three parts: an employee header (Employee.h), an employee source code (Employee.cpp), and a single driver source code (Driver.cpp). With the employee header, I didn't break it up into employee pay and employee. Instead I declared an entire employee object and gave it properties for the employee information and pay. The employee source code then defines and constructs an employee object with the given properties. Once the program has been executed, the driver source code takes in the employee info and uses the employee source code to create an employee object. It then, as always, outputs it onto the screen.

Entire Project4.zip