Question: In C++ language, no usage of strings or strong objects. Thanks Statement of Work Programming Assignment 1 1.0 Overview Smith, Smithe, Smyth, Smythe, and Jones

In C++ language, no usage of strings or strong objects. Thanks  In C++ language, no usage of strings or strong objects. Thanks

Statement of Work Programming Assignment 1 1.0 Overview Smith, Smithe, Smyth, Smythe, and Jones parts, and computer perpherials t to create a database of all its traveling sales is a wholesale computer equipment supplier which sells computers, computer o a large number of retail stores throughout the United States. The company would like representatives. This database must be capable of maintaining the em of each sales rep. The first phase of development for this s database to create the Employee Reonual salary o 2.0 Requirements one source file (epp) and one header file (h) defining a C++ class which can be ariables: (1) an int called m iEmployeelD, (2) a character array integer uniquely identifies this employee. This field will be used as the key when The student shall define, develop, document, 2.1 This software system shall consist of prototype, test, and modify as required the software system file (.cpp) ed to store information on one employee. 2.2 The header file, which shall be named EmployeeRecord.h, s hall define a C++ class. The source file, which shall be named EmployeeRecord.epp, shall implement all functions of the class 2.2.1 The elass shall contain the following privatev of length 32 called m_sLastName, (3) a character array of length 32 called m sFirstName (j an miDeptID, and (5) a double called m dSalary. Details of these variables are defined below 2.2.1.1 m iEmployeelD-This searching for an employee in later programming assignments. 2.2.1.2 m sLastName/m sFirstNameThese two character arrays hold the name of the employee. First and last names may be up to 31 characters in length. These variables may not be implemented as string objects. 2.2.1.3 ml ?DeptID-This integer identifies the employee's department within the company 22.1.4 m_ dSalary-This double holds the employee's annual salary 22 Th ca shall contain the following public functions: a constructor and destructor and get and set functions for each of the variables. These functions shall work as described in the following paragraphs. 2.2.2.1 EmployeeRecord0-The default constructor shall set the member variables to the following initial values: m sFirstName-, m_iDeptID-0, and m_dSalary 0.0. Pay careful string template for character arrays in this assignment. m_iEmployeelD-0, m_sLastName- attention to the warning you will receive in class about how to set the values of strings implemented as character arrays. You may NOT substitute the 2.2.2.2 EmployeeRecord(int ID, the member variables to values char Name, char "IName, int dept, double he values passed into the function. The arguments fname and IName are pointers to character arrays. 2.2.2.3-EmployeeRecord0-The destructor shall take care of cleaning up and deallocating any memory that pointers within this class may have reference to. 2.22.4 int getIDO/void setlD(int ID)-The function getlDO shall return the int value stored in the member variable m_iEmployeelD. The function setlDO will set the member variable m iEmployeelD to the value of its' argument 2.2.2.5 void getName(char Name, char IName), void setName(char Name, char IName)-The getName0 function shall copy the member variables m_sFirstName and m_sLastName into the character arrays pointed to by the function arguments. The setName function will copy the function arguments into the member variables m sFirstName and m sLastName. 2.2.2.6 void getDept(int& d), void setDept(int d)-The getDept0 function shall be defined as a reference function. That is, a call to this function will copy the member variable m iDeptID into the int variable referenced by the function argument. The setDept0 function will copy the function argument into the member variable m iDeptID 2.2.2.7 void getSalary(double "sal), void setSalary(double sal)-- The getSalary0 function shall be defined as a pointer function. That is, a call to this function will copy the member variable m dSalary into the int variable pointed to by the function argument. The function setSalary0 shall copy the function argument into the member variable m dSalary 2.2.2.8 void printRecord0-This function shall print to the screen all data found in the employee's record

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!