By DePaul Dimadis
Choose your prefered Language: greek_flag uk_flag

The structure is given
struct employee {
int code;
float salary [12];
int year; }
The members of the structure are:
• Employee code (acceptable values> 0)
• Its annual earnings per month (acceptable values> 0)
• The recruitment year (acceptable values> 2000)
Set a N-type employee board.
Import elements into the table with validation checks (proper use of the rand () function is recommended)
Find and show up
1. The average length of service for all items in the table
2. The total annual remuneration for employees with at least 5 years of service
3. Total earnings for May
4. The total remuneration for each of the 12 months (ie 12 prices)