Example:
GetLine( "L7", &L[7] ); /* Expect label "L7", and read value(s) into variable L[7]. */ ShowLine(7); /* Printf the value of L[7] to output. */ GetLine( "L9", &L[9] ); ShowLine(9); L[12] = L[7] + L[9]; /* Perform a calculation. */ showline(12); GetLine( "L15", &L[15] ); if (L[15] > L[12]) L[16] = L[15] - L[12]; else L[16] = 0.0; ShowLine(16);
Capital Gains/Losses are Recorded as:
buy_cost date sale_value dateBuy cost is negative; it is a cost; an outlay. Date is xx-yy-zz, where xx is the two-digit month, yy is the day, and zz is the last two digits of the year. (Yes, this is Y2K proof.)
-3658.22 12-15-99 { 100 Shares XOM }
4209.95 1-25-02
The dates are required to apply the proper short-term or long-term capital gains rates on Federal taxes, but are not
required for State tax forms.