代写C++代码 代做C++程序 C++辅导 C++教学

C++网络家教 远程写代码 在线Debug 讲解答疑 不是中介,本人直接写

微信: ittutor QQ: 14061936 Email: ittutor@qq.com

导航


You should be comfortable with the content in the modules up to and including the module "Arrays" for this project.


Create a class called consultCo that holds a private struct called employee that contains the name, pay rate and social security number of an employee of a consulting firm called consultCo. The consultCo class should also have an array that holds all of the objects of all of the employees in the array.  This will be an array of employee objects.  Note: You cannot use a vector for this assignment--you must use an array.


Here is a logical diagram of this array of objects:


You will also need functions to satisfy the following requirements:


Minimum Requirements:


An add function to hire a new employee.  This function should create a new object with the employee information (name, payrate and social security number) and then it should add that new object to the array.  Remember, you cannot use a vector; you must use an array so be sure to track the size of the array and the number of elements in the array as objects are added. You are not required to update an employee’s data if the employee exists. (5 points)

 A report function that will display the name, pay rate and social security number of all employees. (5 points).

A raise function that will give all employees a 10% raise. (5 points).

You will also need a main function that creates calls the function(s) you created to meet the requirements of this project (5 points).

Notes:


The Module Lab Activity "Lookup!" can be extremely helpful for this project.  Just by following the lab activity (and the video demos if needed), you can make significant progress toward completing this assignment.


相关推荐