CSCI 160 Assignment 2, Fall 1997 DUE: The assignment is due on or before 3am, Saturday October 4. This assignment is worth 20 objective points. Your solution will be graded on the basis of its run-time behaviour and on the clarity and simplicity of the source code. See the marking guide in ~csci160/Pex2/markingGuide. With regard to simplicity and clarity, follow the ASAP principle: as simple as possible. INSTRUCTIONS: Issue the command: cp -r ~csci160/Pex2 . to copy the assignment work directory to your account. Locate to Pex2 and use the CSCI 160 Exercise Development Utility to test, verify and submit you assignment (enter the command make help for instructions on how to use the utility). This assignment is to be completed by each student. Submit only one implementation; if you send more than one, we will discard all but the last one. The assignment identifier is CSCI 160 Pex 2 (see Course Information Sheet). Your assignment must be received before the due date and time. In addition, your e-mail must have the assignment identifier as its subject. All other methods of submission will not be accepted. You will receive no credit for an assignment submission that fails to adhere to this convention. QUESTION: Description =========== Federal income tax due on taxable income is calculated as follows: Tax Bracket Tax Due ===============================================|===================================== $0.00 <= taxable income < $20,000.00 | 15% of taxable income $20,000.00 <= taxable income < $100,000.00 | $6,665.50 + (20% of taxable income) $100,000.00 <= taxable income <= $1,000,000.00 | $20,761.50 + (30% of taxable income) ===================================================================================== Your task is to develop a C++ program to determine the amount of tax payable on a given taxable income. Sample Output ============= Enter Taxable Input (in dollars) 100.00 Federal Income Tax Due is $15.00 Assumptions/Restrictions ======================== All money data is positive and real (float) and is to be displayed using two places of decimals. Taxable income is between $0.00 and $1,000,000.00 inclusive. Test Set ======== see ~csci160/Pex2/tinp