Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Write a program to calculate a person's net pay after subtracting federal income tax. The program should ask the user to enter the person's name, social security number, gross pay, and the number of dependents. The program should first de- termine the tax rate according to the following schedule.

Weekly Income Tax Rate
0.00-300.00 0.085
300.01-500.00 0.120
500.01-1000.00 0.185
1000.01 and over 0.220

Use a function Tax_Rate() to determine the schedule. Pass the gross pay to Tax_Rate() and have the function return the rate. Next, use the function Calc_Fed_Tax() to calculate the federal tax. The first ar- gument should be the address of the gross income. The second argument should be the address of the tax rate (as returned by Tax_Rate()). The third argument should be the address of the number of dependents. The amount of the federal tax should be returned in the target of the fourth argument. Finally, the program should calculate the net pay by subtracting the federal tax from the gross income. The program should display the person's name, social se- curity number, gross pay, number of dependents, federal tax, and net pay.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91947321
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Represent each of the following values in the ieee 754

Represent each of the following values in the IEEE 754 32-bit format, truncating inexact values. Indicate the percent error of the value stored compared to the exact value. This will require you to convert the 32 bit flo ...

Search treestry to adopt all four traversal algorithm

Search trees. Try to adopt all four traversal algorithm procedures for any binary tree. Write methods to count the number of nodes in a binary tree to count the number of leaves to count the number of right children to f ...

Is smartart graphic and table slide important for

Is Smartart graphic and Table slide important for PowerPoint Presentation? How would it benefit?

You are required but not limited to turn in the following

You are required, but not limited, to turn in the following source file: Requirements to get full credits in Documentation The assignment number, your name, StudentID, Lecture number(time), and a class description need t ...

Whats your answer about the equilibrium change from an

What's your answer about the equilibrium change from an event which decreases both demand and supply? You don't need to provide graph here. Just describe the curve shifts and how the equilibrium price and equilibrium qua ...

Question list and describe 3 strategies organizations can

Question: List and describe (3) strategies organizations can employ for enhancing the customer experience. Select from Amazon, Walmart, or Google and explain how the company SHOULD use these strategies giving specific ex ...

What effect does the teacher have on creating a learning

What effect does the teacher have on creating a learning environment with little to no behavior problems?

Answer the following question a suppose you have two

Answer the following Question : (a) Suppose you have two initially empty queues Q1 and Q2. Explain how you could implement the stack ADT using Q1 and Q2. Your answer should provide pseudocode algorithms for the stack ope ...

Given an undirected graph with both positive and negative

Given an undirected graph with both positive and negative edge weights, design an algorithm to find a maximum spanning forest with the largest total edge weights.

Software engineeringeach of the following heuristics helps

Software Engineering: Each of the following heuristics helps make a good module according to some modularity principle. Identify the principle for each letter. Modularity principles: Principle of Small Modules Principle ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As