Question: Write a C + + program that manages a list of employees using a structure. Requirements Define a structure Employee that includes the following fields:

Write a C++ program that manages a list of employees using a structure.
Requirements
Define a structure Employee that includes the following fields:
Name (string)
Employee ID (integer)
Age (integer)
Gender (string)
Salary (float)
The program should prompt the user to enter the details of 3 employees and read their input using the
cin object.
The program should create an array of 3 employees using the structure Employee .
The program should print the details of all the employees.
The program should find and print the employee with the highest salary.
The program should find and print the average salary of all the employees.
The program should use appropriate variable names and comments to make your code clear and easy to
read.
Write a C + + program that manages a list of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!