Original Publication Date: 1982-Jan-01
Included in the Prior Art Database: 2005-Feb-08
AbstractThe computation of income tax is performed by the use of a mathematical algorithm. A single equation with stored data arrays computes over the entire tax table.
The computation of income tax is performed by the use of a mathematical algorithm. A single equation with stored data arrays computes over the entire tax table.
In the figure, a flow chart is shown giving the steps for computing the tax. The filing status is identified by the letter N, the total number of exemptions is identified by the letter E, and the taxable amount is identified by the letter A. The numbers in the boxes and at the directing arrows refer to the program number as identified in the index following. The index shows the steps and branches covered by the program as it goes through the flow.
In general, in the flow, first the program is loaded into the memory together with the data. The filing status N, the total number of exemptions E, and the taxable amount A are entered into the system. This is done at Step 1160 in the program. The first decision is the filing status for a married person, the program branches depending upon the filing status. If the filing status is incorrect, the program branches to an error section to print the correct message, such as shown in the decision block 10 where the program branches to Step 3180 if the filing status is less than one or greater than five, identifying an incorrectly entered filing status. If the filing status is of a married person, the flow chart branches to decision block 11 where the total number of exemptions are checked, and if correct, the program continues to check the taxable amount and then continues by branching to Step 4100 to read the data and to compute the tax. The tax computation is performed in Step 5000. If the filing status from decision block 10 identifies a single person, the program continues to decision block 12 where the filing status is again checked for a single person. The filing status then branches to the correct path depending upon the filing status entered, and the total number of exemptions are checked and the program branches to the correct step to compute the tax an read data from the memory. After the tax is computed, it is printed, and the program returns to the beginning.
1000 CLS 1020 DEFSNG W, X, Y, Z, V 1090 DIM X1(14),X2(14),X3(14),Y1(17),YZ(17),Y3(17),Z1(17), Z2(17),Z3(17),W1(12),W2(12),W3(12),V1(3),V2(3), V3(3 1060 FOR I=1 TO 14:READ X1(I),X2(I),X3(I):NEXT: FOR I=1 TO 17:READ Y1(I),Y2(I),Y3(I):NEXT:
FOR I=1 TO 17:READ Z1(I),Z2(I),Z3(I):NEXT:
FOR I=1 TO 12:READ W1(I),W2(I),W3(I):NEXT:
FOR I=1 TO 3:READ V1(I),V2(I),V3(I):NEXT 1080 CLS 1100 PRINT"FORM 1040-A/FORM 1040 TAX CALCULATIONS" 1120 A=0:E=0:N=0:T=0 1130 R=50 1140 S=49 1150 PRINT:PR INT"ENTER THE BOX NUMBER CHECKED FOR FILING STATUS" 1160 INPUT"LINE 1 TO 4 OF 1040-A OR
LINE 1 TO 5 OF 1040 ";N 1180 PRINT:PR INT"ENTER THE NUMBER OF EXEMPTIONS CLAIMED" 1200 INPUT"LINE 6 OF 1040-A OR LINE 7 OF 1040";E 1220 PRINT:PR INT"ENTER THE TAXABLE AMOUNT" 1240 INPUT"LINE 11 OF 1040-A OR LINE 34 OF 1040";A 2000 IF N<1 OR N>5 GOTO 3180 2020 IF N=2 OR N=5 GOTO...