Reference no: EM13940332
Write Java Code needed to perform the following:
• Calculate state withholding tax at 6.0% and calculate federal withholding tax at 25.0%.
• Calculate dependent deductions at 2.0% of the employee's salary for each dependent.
• Calculate total withholding.
• Calculate take-home pay as salary minus total withholding plus deductions.
Please help with the area's highlighted in yellow.
// This program calculates an employee's take home pay.
publicclass Payroll
{
publicstaticvoid main(String args[])
{
double salary = 1250.00;
doublestateTax;
doublefederalTax;
doublenumDependents = 2;
doubledependentDeduction;
doubletotalWithholding;
doubletakeHomePay;
// Calculate state tax here.
System.out.println("State Tax: tiny_mce_markerquot; + stateTax);
// Calculate federal tax here.
System.out.println("Federal Tax: tiny_mce_markerquot; + federalTax);
// Calculate dependant deduction here.
System.out.println("Dependents: tiny_mce_markerquot; + dependentDeduction);
// Calculate total withholding here.
// Calculate take home pay here.
System.out.println("Salary: tiny_mce_markerquot; + salary);
System.out.println("Take Home Pay: tiny_mce_markerquot; + takeHomePay);
System.exit(0);
}
}
Goode manufacturing company
: Goode Manufacturing Company has the following production data for selected months.Ending
|
Level of risk associated with crisis and disaster situations
: Critically analyse [i] the factors that influence the level of risk associated with crisis and disaster situations in the tourism, events and hospitality industry and [ii] the risk treatment options to manage crisis and disaster situations.
|
Depth each term of strenght-weakness-opportunity-threat
: Define in depth each term of the S.W.O.T (Strenght, weakness, opportunity, threat) Analysis and provide real world examples of each.(For the examples please use the company U.P.S if possible)
|
What is the probability range of returns
: A stock had annual returns of 16 percent, 8 percent, -17 percent, and 21 percent for the past four years. Based on this information, what is the 95 percent probability range of returns for any one given year?
|
Calculate the total withholding
: Calculate dependent deductions at 2.0% of the employee's salary for each dependent.
|
Compute the per-unit manufacturing cost for job
: Compute the predetermined overhead rate. Using the predetermined rate, compute the per-unit manufacturing cost for Job 330.
|
Explain a drug problem in your community
: Explain a drug problem in your community and how you might solve this problem if you were a cop? Who might need to be involved in the process?
|
Discuss the importance of communication
: Discuss the importance of communication, consultation and stakeholder management, with reference to:
|
Probability range of returns for any one given year
: A stock had annual returns of 16 percent, 8 percent, -17 percent, and 21 percent for the past four years. Based on this information, what is the 95 percent probability range of returns for any one given year?
|