Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this question we model a database of employees of a company. Assume that there are only two types of employees: labourers and managers. The
In this question we model a database of employees of a company. Assume that there are only two types of employees: labourers and managers. The database is to store a name, an employee number, a salary, and an employment start date for each employee. In addition, for labourers a department is stored, and for managers a title is stored. We will use a base class called employee and two derived classes: labourer, and manager, as shown in the following UML.
Implement the employee classes by declaring and defining all necessary function memebers based on the following main program.
Main Program Using Classes EmployeeTypes
File: testemployeetypes.cpp
Application program using classes employeetypes
Programmer: your name
Date:
#include "employeetypes.h
int mainvoid
char type;
employee type
ofstream fout employeetypesouttxt;
whiletrue loop until break occurs
I need all the code which could work on visual studio. It includes employeetypes.h and employeetypes.cpp and testenployeetypes.cpp
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started