Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

4. Determine the significance of an F-ratio test statistic.

Answered: 1 week ago

Question

3 > O Actual direct-labour hours Standard direct-labour hours...

Answered: 1 week ago