9. Declare a struct type named RecType to contain two integer variables and one Boolean variable. (Assume a Boolean type has already been defined.)
10. Using the declarations in this chapter of the MachineRec type and the inventory array, the code below is supposed to count the number of machines that have not been serviced within the current year. The code has an error. Correct the error by using a proper member selector in the If statement.
DateType currentDate;
.
.
.
machineCount = 0;
for (index = 0; index < NUM_MACHINES; index++)
if (currentDate.year != lastServiced.year)
machineCount++;