This application provides population statistics for Sri Lanka, allowing users to query the number of people above and below 18 years of age.
- Displays the total population of Sri Lanka.
- Provides data on the number of individuals above and below 18 years of age.
- Python: The programming language used for backend development.
- Flask: A lightweight WSGI web application framework for Python.
- HTML/CSS: For front-end development and styling.
The program prompts the user to enter the basic salary and the number of overtime hours.
It calculates the allowance based on the overtime hours:
Overtime hours ≥ 30: 20% of the basic salary.
20 ≤ Overtime hours < 30: 10% of the basic salary.
10 ≤ Overtime hours < 20: 5% of the basic salary.
Overtime hours < 10: No allowance.
The net salary is calculated as: Net Salary = Basic Salary + Allowance.
Finally, the program displays the calculated net salary.
2#
program that analyzes the count of active military forces in Sri Lanka, we can use an API or predefined data source that provides information on the military and security forces. For this example, I will assume we can use hypothetical API endpoints that provide this data.