0
I have this project to write a program in C++ but I donât know how. Please help if you can.
In the program, define an array of records (structures). Each record stores information about an employee of the company: service number, full name, salary, position, gender. Fill in the array using the keyboard. Then the program should be able to answer the following questions: 1) calculate the company's salary fund; 2) calculate the number of women and the number of men working in the company; 3) calculate the salary fund separately for men and separately for women.
1 Answer
+ 3
Maybe I can help with pseudocode...
Create multidimensional array.
Take input into array until user is happy
Perform sum of all the salary elements of the array using for loop
Iterate through array counting genders
When gender is x, add to sumXtotal
When gender is y, add to sumYtotal
Enjoy a break
Output everything and celebrate