Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Raptor for the following problem helping an IRS agent to calculate income tax based on user income and filing status. We will use loops

image text in transcribed

Use Raptor for the following problem helping an IRS agent to calculate income tax based on user income and filing status. We will use loops to process more than one set of input values. a) Ask for the number of people that we would like to process. Make sure the user inputs a positive number more than 0 for the number of people. You need to continue asking for a valid number of people until valid data is entered. b) For each person, in the following order, ask for the filing status (single or married) and income for the person. Assume the user will only enter data in lower case for filing status. c) Use the following table to calculate tax: Tax Due Income From $0 More than $50,000 Filing as single To $50,000 $100,000 10% of income $2500 + 12% of amount over $50,000 $6000 + 15% of amount over $100,000 More than $100,000 Tax Due Income From $0 More than $50,000 Filing as married To $50,000 $100,000 5% of income $2500 + 8% of amount over $50,000 $6000 + 10% of amount over $100,000 More than $100,000 Use Raptor for the following problem helping an IRS agent to calculate income tax based on user income and filing status. We will use loops to process more than one set of input values. a) Ask for the number of people that we would like to process. Make sure the user inputs a positive number more than 0 for the number of people. You need to continue asking for a valid number of people until valid data is entered. b) For each person, in the following order, ask for the filing status (single or married) and income for the person. Assume the user will only enter data in lower case for filing status. c) Use the following table to calculate tax: Tax Due Income From $0 More than $50,000 Filing as single To $50,000 $100,000 10% of income $2500 + 12% of amount over $50,000 $6000 + 15% of amount over $100,000 More than $100,000 Tax Due Income From $0 More than $50,000 Filing as married To $50,000 $100,000 5% of income $2500 + 8% of amount over $50,000 $6000 + 10% of amount over $100,000 More than $100,000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is focal length? Explain with a diagram and give an example.

Answered: 1 week ago

Question

What is physics and how does it apply in daily life?

Answered: 1 week ago

Question

=+What is the procedure for labor relations in the workplace?

Answered: 1 week ago

Question

=+ Are ballots compulsory?

Answered: 1 week ago