Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 SubmitStep 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