Determine the income limit amount for full contributions

Assignment Help Computer Engineering
Reference no: EM131266164

Program

The IRS allows a taxpayer to contribute to a ROTH IRA, if his/her income is not over a specified limit and his/her filing status allows contributions.

You will write a program that carries out the logic of a simplified worksheet to determine how much may be contributed to a ROTH IRA.

Sample IRS-like instructions for each line of the worksheet: This worksheet may not be used by any taxpayer who is married filing separately, and did not live with their spouse any time during the year.

Line 1 Determine maximum possible ROTH IRA contribution limit.

If under age 50, enter $5,500 on line 1. Otherwise, enter $6,500 on line 1.

Line 2 Enter the modified Adjusted Gross Income for IRA purposes on line 2.

Line 3 Determine the Income Limit amount for full contributions, according the filing status from the list below and enter limit on line 3:

Single or Head of household - $ 112,000

Married filing jointly or Qualifying Widow(er) - $ 178,000

Married filing separately and lived with spouse any time during year - $ 0

Line 4 Determine if a reduction to the contribution limit is necessary.

Is the amount on line 2 less than or equal to the amount on line 3?

Yes. Can contribute up to maximum contribution limit. Skip lines 4 - 8 and enter the amount from line 1 on line 9 (ignore line 9 instructions) No. Contribution limit may be reduced. Subtract line 3 from line 2 and enter the amount on line 4 and continue.

Line 5 Determine division amount to use, depending on filing status, and enter it on line 5:

Single or Head of household - $ 15,000

Married filing jointly or separately, or Qualifying Widow(er) - $ 10,000

Line 6 Determine reduction percentage.

Divide line 4 by line 5 and determine the floating point result rounded to 3 places. Is the result is 1.0 or more?

Yes. Cannot contribute to a ROTH IRA.

Skip lines 6 - 8 and enter 0 on line 9 (ignore line 9 instructions)

No. Contribution limit will be reduced.

Enter the calculated reduction percentage rounded to 3 places on line 6.

Line 7 Determine reduction amount.

Multiply line 6 by line 1 and enter the result on line 7

Line 8 Determine possible contribution limit.

Subtract line 7 from line 1. Round the result up to the nearest $10, and enter result on line 8

Line 9 Enter the larger value: line 8 or $200.

This line 9 amount is your ROTH IRA contribution limit.

• Determine if the taxpayer should continue, or if the program should exit.

o If the taxpayer's filing status is married filing separately

o Ask if the taxpayer lived with his/her spouse at any time during the year.

(User input can be in either upper or lowercase.)

If the answer is no, the taxpayer may not contribute to a ROTH IRA. contribution.§

Display a message saying so (see Sample 2 Output below) and pause.§

Then return from main with exit code of 1, to indicate that the program returned before line 1.§

return 1;§

o If the program did not exit, continue.

• Read and store the taxpayer's age.

• Perform a test to determine and store the amount for line 1.

• Read and store Adjusted Gross Income for IRA purposes for line 2.

• Determine the line 3 income limit that applies for the filing status entered, and store the result.

o HINT: Store the filing status description in words into a string variable at the same time.

• Display the Worksheet title and the first 3 lines (1 - 3) of the worksheet.

• Perform the line 4 test to determine if the program needs to continue.

o If line 2 is less than or equal to line 3

Display the amount from line 1 on line 9, and pause.§

Then return from main with exit code of 4, to indicate that the program exited on line 4.§

return 4;§

o If the program did not exit, continue.

• Perform the necessary calculation for line 4 and store the result.

• Determine the line 5 division amount to use for the filing status entered, and store it.

• Display lines (4 and 5) of the worksheet.

• Perform the necessary calculation for line 6 and store the result.

Perform the line 6 test to determine if the program needs to continue.

If the result is 1.0 or more, taxpayer cannot contribute to a ROTH IRA:

Display a message, and pause (see Sample 4 output)§

Then return from main with exit code of 4, to indicate that the program exited on line 6.§

return 6;§

o If the program did not exit, continue.

ROTH IRA Contribution Limit Worksheet

Filing Status: Married, Filing Jointly

1. Possible contribution limit: 5500.00

2. Adjusted Gross Income 180330.00

3. Income Limit: 178000.00

4. Amount over Limit: 2330.00

5. Division amount: 10000.00

6. Reduction Percentage: 0.233

7. Reduction Amount: 1281.50

8. Reduced contribution limit: 4220.00

9. Maximum ROTH IRA Contribution Limit 4220.00

Reference no: EM131266164

Questions Cloud

Global health problems and diseases : This assignment is designed to familiarize you with some of the global health problems and diseases in your selected population. You will discuss the extent to which the behaviors, culture, or environment of the population affected by the infectio..
Explain your conflict handling style : Explain your conflict handling style and how your ability to handle conflict can either enhance or hinder effective leadership in the health care environment. Support your responses with at least 2 examples.
Reduction in the production of oil : The OPEC oil embargo of 1973, an event marked by a reduction in the production of oil, a reduction in exported oil to the US, and an increase in oil prices for the US, may have contributed towards the {expansion, recession} of 1973 and {decrease, ..
What fluid power is expected to be delivered to the turbine : A landowner has constructed an elevated reservoir as shown in Fig. P12.49. She estimates that 1200 L/min is available as continuous flow and desires to install a small Francis turbine to generate electricity for her own use.
Determine the income limit amount for full contributions : Line 2 Enter the modified Adjusted Gross Income for IRA purposes on line 2. Determine the Income Limit amount for full contributions, according the filing status from the list below and enter limit on line 3.
Describe ethical considerations within the evaluation stage : Explain what factors could prevent your policy objective(s) from being implemented. Explain what factors you feel could contribute to your policy meeting its objective(s). Define the revision stage. Explain potential revisions to the policy resulting..
Calculate the pressure at the wall : A 20° inclined manometer attached to a piezometer opening is used to measure the pressure at the wall of airflow. If the reading is measured to be 4 cm of mercury, calculate the pressure at the wall.
Relationship between price and marginal cost : In the monopolist equilibrium, what is the relationship between price (P) and marginal cost (MC)?
Draw the atc and mc curves for such a firm : Suppose there is a "natural monoply," i.e. production exhibited increasing returns to scale and marginal cost is constant but essentially zero. i) Draw the ATC and MC curves for such a firm.

Reviews

Write a Review

Computer Engineering Questions & Answers

  The bookstore wants you to make an object-oriented model

student bookstore at pleasant creek community college situation the bookstore staff at pleasant creek community college

  Define difference between a shallow copy and a deep copy

Overload the operator += for the class newString to perform the following string concatenation; suppose that s1 is "Hello" and s2 it "there". Then the statement s1 += s2; should assign "Hello there" to s1, where s1 and s2 are newString objects.

  Explain the importance of internal customer satisfaction

Adding leadership roles in IT can have benefits and risks. Discuss as a minimum  two benefits and two risks an organization faces by adding roles within IT leadership.

  Explain the common user interface

Think about how the Microsoft Office applications have been designed to work together. Look at the user interfaces of all the Microsoft Office applications you have installed on your computer and define the common user interface and features you s..

  Write a program to converts temperatures between

write a program to converts temperatures between fahrenheit and celsius. your program should print a brief message

  Explain basic wireless network maintenance functions

Occasionally after upgrading firmware, the antennas in your wireless network want to be adjusted. What technology may someday eliminate this need for antenna maintenance.

  Define the concept of object orientation

decribe the concept of object orientation and Universal Modeling Language (UML) as used in computer programming.

  You are a network support technician for a college

explain why each step is necessary. Suppose that your troubleshooting methodology leads you to determine that the problems was caused by a malfunctioning gateway. Suggest ways in which the problem could have been prevented.

  Write a program that mimics a flop-turn-river of poker game

Write down a program that mimics a flop-turn-river of a poker game. I must have three buttons titled Deal, Shuffle and Start Over.

  Describe a method for notifying the systems administrator

write 500 words for each of the discussion tasks. you should provide credible references for every task according to

  How security and integrity of their data can be maintained

The advantages and disadvantages to an organisation of using Cloud Computing, for example, the potential to reducecosts, the risk of making the organisation's data more vulnerable to hacking.

  Describe the function and purpose of each component

describe how the components are related to each other. For example, does the component you are describing depend on another to operate? Is it connected to the network physically or wirelessly.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd