Task description
Design an application for Android devices that allows the user to enter their information about income and deductions. The application will determine the amount that the user must pay from contributions or the amount you will receive as a refund. The application must have the same interface that is shown in the video in the video and the same functionality All the processes indicated in the video that will be implemented with procedures will be they have to do that way and the values will be received through arguments and will be returned through of the name of the procedure. In addition to the application, you will create a document in MS-Word where you will include images of all the procedures that you created for your application. Under each image, it will indicate what the objective of the procedure, what each of the arguments is used for and what is the value that it returns.
Task: Application Contributions on Income
Introduction
The Androidlandia contributory system works in the following way. Any person able to work must work. People can work for up to three employers. If the person works on his own, then he is his own employer. The total annual income of people is the sum of the income for all your jobs.
People are entitled to several deductions from their income that make the amount for which must pay taxes is lower. There is a deduction of $ 5000 for each child who is studying in college. There is a deduction of $ 3000 for other dependents who are not university students. Spouses are included in this line. A person is not counted as dependent on himself. There are other possible deductions that are not detailed in this document but are considered when evaluating what is the contributory responsibility of a person.
Employers are responsible for withholding part of the employees' salary. The sum of the withholding of a person's wages will be the tax withheld for purposes of computing the income tax. There is only one scale to determine the tax liability. It is 20% of the income subject to contribution (here it will be known as net income). Net income is the sum of all the income minus the sum of all deductions. After obtaining the income, 20% of it is the contributory responsibility of the individual. That is, the amount you must pay in taxes. Yes, that amount is greater than the amount that the employers retained then the individual must pay the difference. If the amount is less than the amount retained by the employers, then the government of Androidlandia must return the difference (reimbursement) to the individual.
Here is an example.
Procedure procTotalW2
Objective: Determine the total income of an individual
Arguments: x - income with one of the employers and - income with one of the employers z - income with one of the employers
Result: The method returns as a result the sum of the three values it receives for the arguments
Note that within the procedure it does not use the contents of text boxes, labels or other components external but the values of the arguments. If, for example, you want to send the value of the three-income found in text boxes in the application interface you could invoke the procedure of a way similar to the following:
With this invocation the result that the procedure returns through its name is stored in the text of a label that represents the total income of the individual.
Procedure procTotalW2