Exercise

Tax calculations

It's possible to use vectorized operations to calculate taxes for the liquor, restaurant, and department store industries! We'll simplify the tax calculation process here and assume that government collects 5% of all sales across these industries as tax revenue.

Your task is to calculate the tax owed by each industry related to each month's sales. numpy is loaded for you as np, and the monthly_sales array is available.

Instructions 1/2

undefined XP
    1
    2
  • Create an array called tax_collected which calculates tax collected by industry and month by multiplying each element in monthly_sales by 0.05.