Question
MUST USE CODE BLOCKS C++ language !!! An IRS agent is checking taxpayers returns in the $30,000.00 to $40,000.00 income bracket (gross earnings). Each record
MUST USE CODE BLOCKS C++ language
!!! An IRS agent is checking taxpayers returns in the $30,000.00 to $40,000.00 income bracket (gross earnings). Each record of the data file contains a tax identification number (four digits), gross earnings, and the amount of taxes paid for the year. If the taxes paid are below 20.5% of the gross earnings, you are to compute the taxes due (assume all taxes are in the bracket of 20.5% of gross earnings). If there are taxes due a penalty charge of 4% is added to the amount. If the taxes due exceed $1,300.00 an additional 2.0% penalty charge is added to the amount over $1,300.00. For those that paid more than the 20.5%, compute the refund due and leave a message to that effect. Records of gross earnings outside the range of $30,000.00 to $40,000.00 are not checked and an appropriate message must be printed to that effect. Your program must also generate a summary report containing the following information:
1. The total number of records in the data file.
2. The total number of taxpayers checked in range.
3. The total number of taxpayers receiving refunds.
4. The total dollar amount refunded.
5. The total number of taxpayers that owe taxes.
6. The total dollar amount of taxes due.
7. The total dollar amount of penalties due.
8. The average dollar amount refunded.
9. The average dollar amount of taxes due.
10. The average dollar amount of the penalties due.
Note: You must use functions for the following:
1. The headings.
2. One function to compute the averages. (called three times)
3. Print the summary report.
4. Other functions may be used were you deemed appropriate.
Your source code must contain the following documentation.
1. Header information: (Source Code and Output) Your Name, course & section number, assignment number and due date.
2. A brief description of your assignment.
3. Variable dictionary: A brief description of every variable used in your program.
4. Comments related to input and output of data and all formulas used in your code.
Data information
5647 38500.00 6547.19 9087 31500.00 7975.50 1245 18750.00 2812.50 3421 37500.00 00.00 9700 36550.00 8150.00 2367 33100.00 1950.00 2356 31150.00 5975.50 7757 29850.00 3672.90 6656 32500.00 9020.00 2443 40110.00 3012.85 5124 40196.00 5747.24 5994 30575.00 4255.10 3331 34180.00 4170.00 5199 75150.00 26256.00 3995 39895.00 9175.50 8321 16010.00 901.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started