Un país necesita controlar el gasto público de las ciudades con más de 100.000 habitantes. Para ello, tiene información del monto recaudado por cada ciudad a través de cinco diferentes tipos de impuestos (denominados: imp1, imp2, imp3, imp4 e imp5) y la información acerca de los gastos realizados en el mantenimiento de la ciudad.
Este país necesita un sistema que le informe:
- Cuáles son las ciudades que gastan más de lo que recaudan.
- Qué provincias tienen más de la mitad de sus ciudades en condición de déficit.
- Tener en cuenta la información que contienen los distintos impuestos.
- ¿En qué afecta el tamaño de la ciudad?
A country needs to control public spending in cities with more than 100,000 inhabitants. For this, the country has information on the revenue collected by each city through five different types of taxes (called imp1, imp2, imp3, imp4, and imp5), as well as information on the expenses incurred for city maintenance.
This country needs a system that provides the following:
- Which cities are spending more than they are collecting.
- Which provinces have more than half of their cities in a deficit condition.
- Consider the information contained in the different taxes.
- How does the size of the city affect the situation?