Here are the equations you need to compute certain lines on the forms (the ones that say "if required" or "refer to page X" in the tax booklet). If you find one missing, let me know and I'll add an equation to this page.
Line 8a: Require Schedule B, Part I only, if interest are over $400
Line 9: Require Schedule B, Part II only, if dividends are over $400
Note: The way tax forms usually work is that if your interest or dividends are less than $400, then you don't have to substantiate the details with a schedule; otherwise you need to attach Schedule B with the details. The relevant total from Schedule B is then entered onto the main form.
Lines 21, 32, 33: Just request a number
Line 40: if a box is checked on 39a, enter $5,000 on line 40; otherwise use Schedule A or the numbers in the box on the form (next to line 40) -- the user should choose which. Ignore the part about "if can be claimed as a dependent".
Line 44: Compute the tax on the amount in line 43. Use a tax rate of 33% for income over 150K, 28% for income over 75k to 150K, 17% for income over 30K to 75K, and no tax for incomes under 30K.
Line 28: If they check yes, just use 137,300.
For any other line that mentions a form or worksheet, ignore that part and just enter a number.
For blacked out lines, assume they are zero.