But, as we have seen, the idea is easily explicable due to the assumption that alon1 and alon2 are of equal length. The first example implies that the answer for the first cond -clause is empty . We merely need to combine these values to get the final answer. More specifically, given the purpose statement, we must compute the weekly wage for the first employee and cons truct a list from that wage and the rest of the wages. The auxiliary function weekly-wage consumes the two first items and computes the weekly wage.
Figure contains the complete definitions.
An employee structure contains an employee's name, social security number, and pay rate. A work structure contains an employee's name and the number of hours worked in a week. The result is a list of structures that contain the name of the employee and the weekly wage. Modify the function in figure so that it works on these classes of data. Provide the necessary structure definitions and data definitions.