subject
English, 21.05.2020 23:59 hannahgracew12

Write a c++ program '
Consider that a system has two entities, Employee and Department. The employee has the following properties: employee name, number, SSN and salary. Similarly, the department has the following properties: department name, department number and a set of employees who are working on that department.

Implement the above system taking into account the following requirements:

In department, the number of employees that are working on this department is decided at the time when instantiating the department.

Assume that emp1 and emp2 are two objects of type Employee, write a code that enables you to write: if (emp1.isequal (emp2)). Where emp1, emp2 are employee objects. The statement is true if the objects have the same salary.

In department, make sure no two employees have the same employee number.

In department, write a method to increase the salary of an employee by a specific value. it should validate that value.

Write a getEmpByEno method in class department that returns a pointer to one of the employees in that department using the Employee number.

Write a getEmpByName method in class department that returns a list of employees in that department who have the same name.

Write a method to find the maximum salary in the department.

Write a code that enables you to write: if (equal (dept1, dept2)). Where dept1 & dept2 are departments object. The statement is true if the two departments have the same sum of employee salaries.

c++ program

ansver
Answers: 3

Other questions on the subject: English

image
English, 21.06.2019 22:00, billy1123
What role should teachers play in creating tolerance environment for students?
Answers: 1
image
English, 21.06.2019 22:30, jwbri
Apex english 4 semester 1 read the following story summary. when she was a child, sara hated her piano instructor, mr. singh. she felt she had already mastered the piano, but mr. singh constantly criticized her playing in a blunt and hurtful way. after sara grew up, she realized that mr. singh's strictness was responsible for the only edge she had over other pianists her age and the only reason she was able to succeed in music later in life. she learned to appreciate his tough love. what does the story most clearly suggest about the author's perspective? a. that a person should put his or her talents to good use b. that pursuing one's dream is paramount in life c. that the world is harsh and only the strong survive d. that adults have children's best interests in mind
Answers: 1
image
English, 22.06.2019 01:30, giiffnlojd
Asentence teacher gives the following speech. prepare a brief speech to accompany your science project. the speech will be presented to a faculty panel selected as judges. include a summary of your hypothesis, methods, and results. provide an explanation of any pictures or charts one of your poster. also share any complications you encountered during the science fair process. who is the intended audience for the teachers speech? a. young students. b. peers at the science fair. c. teacher evaluators. d. science professionals
Answers: 2
image
English, 22.06.2019 02:30, lakaralake11
What language uses emotionally words
Answers: 2
You know the right answer?
Write a c++ program '
Consider that a system has two entities, Employee and Department. The emp...

Questions in other subjects:

Konu
English, 01.11.2020 21:30
Konu
Mathematics, 01.11.2020 21:30