Class Budget2023
java.lang.Object
Budget2023
Provides high-precision statistical analysis of the 2023 Greek State Budget.
This class calculates the percentage distribution of fixed historical expenses
and incomes, representing each category as a ratio (0.0 to 1.0) relative to
the annual totals (806.88B for expenses and 798.04B for incomes).
All calculations use
BigDecimal with 8-decimal precision and
RoundingMode.HALF_UP for financial accuracy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimal[]Calculates and returns the relative distribution of expense categories for the year 2023 based on the total public expenditure.static BigDecimal[]Computes the relative distribution of income categories for the year 2023 based on the total projected public revenue.
-
Constructor Details
-
Budget2023
public Budget2023()
-
-
Method Details
-
staticsExp
Calculates and returns the relative distribution of expense categories for the year 2023 based on the total public expenditure.Each element in the returned array represents the proportion of a specific expense category relative to the total expenses and is calculated using
BigDecimaldivision with rounding applied.- Returns:
- a
BigDecimalarray containing the normalized expense values
-
staticsInc
Computes the relative distribution of income categories for the year 2023 based on the total projected public revenue.Each element of the returned array represents the proportion of a specific income category relative to the total income. The values are calculated using
BigDecimaldivision with a scale of 8 decimal places andRoundingMode.HALF_UProunding to ensure numerical accuracy.- Returns:
- a
BigDecimalarray containing the normalized income values for all income categories in 2023
-