A simple salary allowances calculator.
- Title : Salary Calculator
- Description:
- Basic salary text box, followed by a "Compute button"
- Loosely coupled app
- Follow MVC and SRP
- "Compute button" will compute "Allowances" as follows:
- HRA : 50%
- DA : 20%
- TA : 30%
- MA : 25% - GS : BS + HRA + DA + TA + MA
- PF : 5%
- Tax : 10%
- NS : GS - Tax - PF
- Architecture:
- Presentation/View Layer:
- HTML page
- Skeleton using bootstrap
- Take Base Salary input
- Click "COMPUTE" to calculate allowances
- Controller:
- Abstraction layer
- Listen to "COMPUTE" from Presentation/View Layer
- Function computeAllowances to :
- take input and send to Model/Data Layer
- recieve output from Model/Data Layer
- send output to Presentation/View Layer
- Function createPTag to :
- Create p tags for Presentation/View Layer
- Model/Data Layer:
- Logic for allowances calcumations:
- HRA, DA, etc.
- Object with functions to calculate allowances.
- Logic for allowances calcumations:
- Presentation/View Layer: