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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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