Starting from:

$34.99

48430 Assessment 2 Solution

Data Engineers regularly collect, process and store data. In this task you will develop a deeper understand

The list is stored as an array of employee_t type structures

employee_t employeelist [MAX_COMPANY_SIZE];

The employee_t is a structure typedef for struct employee. The struct employee contains the following field

name - array of MAX_NAME_SIZE chars (string) fte - a float between 0.0 and 1.0 level - unsigned integer between 7 and 18 birthday - a structure of date_t type as defined below.
The variable fte indicates if an employee works full-time or part-time for a company. The value fte=1.0 (or 0


Your program interacts with the nested struct array in your memory (RAM) and simple database file in your

1. add employee
Add a new employee to the employeelist through the terminal. You should collect the input by asking multip

Enter name>
Enter birthday: day>
Enter birthday: month>
Enter birthday: year>
Enter FTE>
Enter level>

2. delete last employee
Remove the last employee from the employeelist. TIP: you cannot delete an element from an array. Instead

3. display employee list
Display the list of employees in the following format as shown in the sample run. Please follow the sample

Name Birthday FTE Level
---------- ---------- ----- -----

Pay attention to the strict formatting guide:

Name - left aligned, 10 chars at most.
4. save the employee list to the database file

5. read the employee list from the database file

6. exit the program
Exit the interactive program.

More products