Page 1 of 1

Define a struct employee with 4 members: employeeID(string), name(string), age(int), department(string) Declare an array

Posted: Sun May 15, 2022 10:11 am
by answerhappygod
Define a struct employee with 4 members:
employeeID(string), name(string), age(int),
department(string)
Declare an array of size 5 for your struct
information for each employee from the user. multi-word inputs
for name, department
Display the data in your array in the terminal
Define a function that takes the array as input, and returns
the count of the number of employees where
department == "Computer Science"
Call the above function from your main function, and print the
returned count
C++ please include comments. Linux