Choose whatever language you're most comfortable with to solve these problems.
The ACME inc. tool supply company manages its operations with 3 csv files:
customers.csvkeeps customer information:idis a numeric customer idfirstnameis the customer's first namelastnameis the customer's last name
products.csvkeeps product info:idis a numeric product idnameis the human-readable namecostis the product cost in euros
orders.csvkeeps order information:idis a numeric order idcustomeris the numeric id of the customer who created the orderproductsis a space-separated list of product ids ordered by the customer
Manually dealing with those files is hard and error-prone, and they've asked for your help writing some code to make their lives easier.
Right now the orders.csv doesn't have total order cost information.
We need to use the data in these files to emit a order_prices.csv file with the following columns:
idthe numeric id of the ordereurosthe total cost of the order
The marketing department wants to know which customers are interested in each product; they've asked for a product_customers.csv file that, for each product, gives the list of customers who have purchased this product:
idnumeric product idcustomer_idsa space-separated list of customer ids of the customers who have purchased this product
To evaluate our customers, we need a customer_ranking.csv containing the following columns, ranked in descending order by total_euros:
idnumeric id of the customerfirstnamecustomer first namelastnamecustomer last nametotal_eurostotal euros this customer has spent on products