Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a C++ program using classes. (need 3 Constructors, mutator functions, main function). 2. neployen Class Write a class named zeployee that has the following

write a C++ program using classes.
(need 3 Constructors, mutator functions, main function).
image text in transcribed
2. neployen Class Write a class named zeployee that has the following member variables: - name. A string that holds the employee's name. - idsusber. An int variable that holds the employce's ID number. - departannt. A string that holds the name of the department where the troones vorks: - position. A string that holds the employee's job tide. The class should have the following constructors: - A constructor that accepts the following values as arguments and assigns then the appropriate member variables: employee's name, employee's ID number, dose: ment, and position. - A constructor that aceepts the following values as arguments and assigns them to gy appropriate member variables: employee's name and ID number. The departes and position fields should be assigned an empty string (n=). - A default constructor that assigns empty strings (" ") to the name, departnont, in position member variables, and 0 to the idsumber member variable. Write appropriare mutator functions that store values in these member variable al accessor functions that return the values in these member variables. Once yoe tiviy written the class, write a separate program that creates three Employee objects to hin the following data. The program should store this data in the three objects and then display the das each employec on the screen

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_2

Step: 3

blur-text-image_3

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

6. Explain how to install a performance management program.

Answered: 1 week ago

Question

LO5 Describe job analysis and the stages in the process.

Answered: 1 week ago