Create a class called employee with member data empno, name, deptname, designation, age, and salary. Perform the following by including member functions in the class: a) To accept the details of 5 employees( Array of object) b) To display the details of employees. c) To search for an employee in the array of objects created, by means of empno and display his details d) To find the youngest employee among all the employees and display the details of that employee e) To find the total salary of all employees.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section: Chapter Questions
Problem 2PP: (General math) a. Construct a class named Cartesian containing two double-precision data members...
icon
Related questions
Question
100%

Create a class called employee with member data empno, name, deptname, designation, age, and salary. Perform the following by including member functions in the class:

a) To accept the details of 5 employees( Array of object)

b) To display the details of employees.

c) To search for an employee in the array of objects created, by means of empno and display his details

d) To find the youngest employee among all the employees and display the details of that employee

e) To find the total salary of all employees.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning