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

  Why professionalism of procurement officers is essential

Why professionalism of procurement officers is essential.

  Script of dialogue between two medical professionals

Respond to other students by adding anything they may have missed, correcting any errors, complimenting them on proper usage, or expanding their discussion.

  How about male attraction to healthy youthful women

How would an evolutionary psychologist explain differing levels of physical aggression in males and females?

  Automatic incumbency and political process

Should elected political figures be required to be re-vetted by a bi-partisan committee prior to qualifying for automatic incumbency? What are the potential draw-backs to this?

  Why did the ruling apply retroactively

In the Supreme Court case of [Roper vs. Simmons] (2005), the Supreme Court overturned the imposition of the death penalty for juveniles. Because of the ruling, every State had to convert those juveniles in their state sentenced to death to life in pr..

  Specific cognitive abilities and behaviors

Theories of Intelligence or Consider for a moment how different cultures value specific cognitive abilities and behaviors.

  What are the most stricking cultural characterics

As an american business traveler to the country of Chile, In a short desription, What are the most stricking "cultural characterics" I need to know about that may effect business interactions in that country?

  High-quality education in elementary school

Write down the faetures and signs of high-quality education in elementary school.

  Push strategy to a pull strategy

Decide what steps would be necessary to convert that company or organization from a push strategy to a pull strategy.

  Every business must tune into technology

It seems like the consensus is that every business must tune into technology… even if it doesn’t have money to invest in technology. As was pointed out, there are some impactful things that you can do given a little knowledge and time (i.e. free webs..

  Explain the risks associated with leveling resources

Explain the risks associated with leveling resources, compressing or crashing projects and imposed durations or “catch-up” as the project is being implemented

  Egion of many different languages

because _____,oceania became a region of many different languages

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