https://github.com/analiaburgosdev/java_oop_taxes
Java OOP exercise to track public spending and tax collection, identifying cities and provinces with deficits.
https://github.com/analiaburgosdev/java_oop_taxes
java oop-principles oops-in-java
Last synced: 3 months ago
JSON representation
Java OOP exercise to track public spending and tax collection, identifying cities and provinces with deficits.
- Host: GitHub
- URL: https://github.com/analiaburgosdev/java_oop_taxes
- Owner: analiaBurgosDev
- Created: 2023-08-21T01:01:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T22:36:15.000Z (7 months ago)
- Last Synced: 2025-06-11T23:41:39.520Z (4 months ago)
- Topics: java, oop-principles, oops-in-java
- Language: Java
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ejercicio de POO - Sistema de Control de Gastos Públicos
## Consigna
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:
1. **Cuáles son las ciudades** que gastan más de lo que recaudan.
2. **Qué provincias** tienen más de la mitad de sus ciudades en condición de **déficit**.### Consejos:
- Tener en cuenta la información que contienen los distintos impuestos.### Extra:
- **¿En qué afecta el tamaño de la ciudad?**
--------------------------------------------------------------------------------------------------------------------------
# OOP Exercise - Public Spending Control System## Problem Description
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:
1. **Which cities** are spending more than they are collecting.
2. **Which provinces** have more than half of their cities in a **deficit** condition.### Tips:
- Consider the information contained in the different taxes.### Extra:
- **How does the size of the city affect the situation?**