Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that will compute the user annual salary. Prompt the user the enter (1) the weekly salary. Store the information in a double

Write a program that will compute the user annual salary. Prompt the user the enter (1) the weekly salary. Store the information in a double variable. Prompt the user to enter the number of weeks worked in a year. Use an int variable for that.

Write code that will compute the user's Annual salary. Gross salary is salary before any deductions are taken.

Update the code and prompt the user to enter the federal tax rate and the state's tax rate which are deducted from the weekly salary. Enter these values as percentages, without the percentage sign. Use double variables to store them. Compute and output the total taxes taken from the user's annual salary and the Net annual salary, which is the salary minus all taxes.

Update the code and prompt the user for the social security amount deducted from the weekly salary. (Assume that is less than the weekly salary). Store this information in a double variable. Compute the total annual social security amount taken from the user's annual salary and output the new net annual salary after all deductions. (Taxes and Social Security)

Update the code to compute and output the Annual deduction rate. The deduction rate is the total annual deductions taken from the salary divided by the gross annual salary. Display it as a percentage in the output.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions