Deductions taken from his gross pay

Assignment Help Other Subject
Reference no: EM13316602

Each employee has the following deductions taken from his gross pay: Federal Income Tax: 15% State Tax: 3.5% Social Security + Medicare Tax: 8.5% Health Insurance $75 The output from your program should be structured as is displayed below: Bill Robinson Gross Amount: ............ $3575.00 Federal Tax: ............. $ 536.25 State Tax: ............... $ 125.13 Social Sec / Medicare: ... $ 303.88 Health Insurance: ........ $ 75.00 Net Pay: ................. $2534.75 Here is the program I have designed: #include #include using namespace std; int main() { double grossPay; double FedralTax; double StateTax; double Social_midCare; double HealthInsurance; string name; cout<<"please enter the employee name"<<endl; getline(cin,name); cout<<"please enter the gross pay of "<<name<<endl; cin>>grossPay; if(grossPay<0) { while(grossPay<=0) { cout<<"sorry you entered a wrong Gross Pay information"<<endl; cout<<"please enter the Gross Pay again"<<endl; cin>>grossPay; } } FedralTax=grossPay*(15.0/100) ; StateTax=(3.5/100)*grossPay; Social_midCare=(8.5/100)*grossPay; HealthInsurance=75; cout<<name<<endl; cout<<"Gross Amount: ............ "<<grossPay<<"$"<<endl; cout<<"Federal Tax: ............. "<<FedralTax <<"$"<<endl; cout<<"State Tax: ............... "<<StateTax<<"$"<<endl; cout<<"Social Sec / Medicare: ... "<<Social_midCare<<"$"<<endl; cout<<"Health Insurance: ........ "<<HealthInsurance<<"$"<<endl; grossPay=grossPay - (FedralTax + StateTax + Social_midCare + HealthInsurance); cout<<"Net Pay: ................. "<<grossPay<<"$"<<endl; 3. Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each input and to report each output. Include steps to deal with error cases. 4. Identify three test cases, one using a positive number, and one using a negative number, and one using incorrect input (ie. Input a letter rather than a digit for the numeric input). For each of the three test cases show what inputs you will use and what your expected outputs should be. 5. Write the program to implement your algorithm. Test your program using your test cases.

Reference no: EM13316602

Questions Cloud

What is the density on a hot day : The density of gasoline at 0 degrees celsius is 0.68E3 kg/m^3. What is the density on a hot day when the temperature is 35 degrees celsius
How to use the bisection method on the van der waals : how to use the bisection method on the van der waals equation Problem 1 (15 Points) The van der Waals equation gives a relationship between the pressure P (in atm.), volume V (in L), and temperature T (in K) for a real gas
Convert the formula so that q is in gallons per minute : The flow of water over a weir, can be computed by Q=5.35LH^(3/2), where Q is the volume low rate of water in cubic feet per second, L is the length of weir in feet, and H is the height of water over the weir in feet.
Find the tension in the cable holding up the boom : A 1450 N uniform boom is supported by a cable as shown. The boom is pivoted at the bottom, and a 1270 N object hangs from its end. Find the tension in the cable holding up the boom
Deductions taken from his gross pay : Each employee has the following deductions taken from his gross pay: Federal Income Tax: 15% State Tax: 3.5% Social Security + Medicare Tax: 8.5% Health Insurance $75
Compute the net charge : A metal sphere has a charge of +6.9uc. What is the net charge after 7.6x10^13 electrons have been placed on it
Define accounting profit and economic profit : Define accounting profit and economic profit. When total sales revenue is $120,000, total costs $63,000, and total implicit costs is $33,000. Please calculate accounting profit and economic profit.
Find is there any conversion factor : how to convert ac current to dc current? is there any conversion factor? how to select an autotransformer for dc motors
What is the local acceleration midway along the nozzle : the velocity varies linearly with time throughout the nozzle. the velocity at the base is 1t and at the tip is 4t. what is the local acceleration midway along the nozzle when t=2s

Reviews

Write a Review

Other Subject Questions & Answers

  Recognizing the types of authorized arrests

Identify types of authorized arrests; differentiate between acceptable and unacceptable police action, during and before an arrest; determine if the arrest is a proper seizure of persons under the Fourth Amendment.

  Examples of ageism from media-personal experience

Provide some examples of ageism from the media or your own personal experience, and share some ways that the human services field can work to combat this issue. Prior to this week’s reading, were you aware of the increase in elder abuse? What are som..

  Performance evaluation and review technique

Compose the tasks that would be needed to complete a Gantt chart (project schedule) for outsourcing the company's payroll system. Compare the advantages and disadvantages of using a Gantt chart versus using the Performance evaluation and review techn..

  Define teaching as a professional career

which you list 3 to 5 factors that define teaching as a professional career. Elaborate on how these factors are employed by teachers on a daily basis.

  Siemens builds a stratey-oriented hr system

Read the Application Case: "Siemens Builds a Stratey-Oriented HR System," p. 81 of your text(Human Resource Management14thed.Dessler) Course concepts in Chapter 3, specifically Figures 3-1 and 3-6 in your text, should be incorporated in your response..

  Mass communication-machine assisted personal communication

differences between mass communication and machine assisted inter personal communication

  Meaning of the burning the idols-diego muñoz camargo

What is the meaning of the Burning the idols. Diego Muñoz Camargo,  Description of the City and Province of Tlaxcala, ca. 1581-84, f. 242r besides the obvious reasons ?

  Find the vertices of the rectangle with maximum area

A rectangle has one side on the x-axis and two vertices on the curve

  Using test on which blacks score lower than whites

A firm is using a test on which blacks score lower than whites. What are the likely implications of (A) using the test as it is and hiring the top scorers.

  Types of intelligent techniques

Which of the following are types of intelligent techniques? Knowledge management systems. Expert systems. Computer-aided design  Sensitivity analysis.

  Analysis essays on river by mark twain

I am writing two analysis essays on Two ways to see a river by Mark Twain and Farenheit 59 What a child's fever might tell us about climate change by Audrey Shulman.

  The enzyme glucose oxidase catalyzes

The enzyme glucose oxidase (GOx) catalyzes the conversion of glucose to gluconic acid in the presence of the cofactor FAD and oxygen. Consider a batch reactor that contains 0.3 mM of dissolved GOx and 100 mM  of glucose at time equal zero.

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