The project below contains an employee database variable already loaded with the nine employees of a small company—each employee is a list of a name, job title, and yearly salary—along with an employee constructor and name, job title, and salary selector blocks. (The data comes from Structure and Interpretation of Computer Programs by Abelson and Sussman.)
"This company spends more money on the big bosses than on the people who do the work," says Alyssa one day. Is she right? Using higher-order list blocks like keep, map, and combine, write an expression to compute the total salaries of everyone paid less than $100,000 per year, and then the total for everyone paid more. Then make the results more convincing: report a list containing the total followed by the names of the people in each category, and find the average salary of the people paid less than $100,000.
Your work autosaves (and you can use the Save button); earlier versions are available from the Revisions dropdown.