Question: use c++ QUESTION 14 30 points (Extra Credit) Save A Create a class called Employee. 1. It shall contain as private members: a string class

use c++
QUESTION 14 30 points (Extra Credit) Save A Create a class called Employee. 1. It shall contain as private members: a string class variable named "name", a string class variable called "id", an integer called "age", a double called "salary" 2. As public members, create a constructor that takes parameters to initialize all members. It must validate that age > 0 and salary >=0 3. Provide public functions to set each member value as well as all member values. Perform same validation as in the constructor. (Actually, constructor should call the set functions) 4. Provide public functions to get each member value 5. Test each and every function in a sample program Provide source code Code should include a comment with your name, course code and date. (20 points) Extra-Extra credit. Provide separate source code files: one set for the Class (h and cpp) and one for the test code. Each file should include a comment with your name, course code and date. (10 points) Attach File Browse My Computer Browse Content Collection Browse Dropbox Click Save and Submit to save and submit. Click Save All Answers to save all answers. Save All Answers Save and Submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
