Calculate the total withholding

Assignment Help JAVA Programming
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);
}
}

Reference no: EM13940332

Questions Cloud

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?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java program to print strings given at command line

Write down program Average.java to print strings which it is given at command line, one per line. If nothing is given at command line, then print "No arguments".

  Write a program with an exception handler

Write a program with an exception handler that deals with nonnumeric operands; then write another program without using an exception handler to achieve the same objective.

  Implement a program that will play the old guessing game

Your assignment is to implement a program that will play the old guessing game "I'm thinking of a number between 1 and 100". The program will be in a webpage

  Is a java applet different than a java program

Is a Java Applet different than a Java program? Why do we need to write HTML code for a java Applet to run it? How do we test a Java Applet

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Code that sorts the household sizes in ascending order

The program should allow the user to enter each household size and determine the mean and median household size in Marengo. Need to write the code that sorts the household sizes in ascending order using a bubble sort.

  Java class that represents your favorite musical instrument

Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 4 private data fields, getters and setters for each private data field, a toString() method

  Develop a program to emulate a purchase transaction

Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class

  Create simulation by java language for single-server queue

Suppose that customer inter-arrival times are exponentially distributed and service times are normally distributed. Create simulation by java language for this problem and view all parametre?

  Communication with an smtp server

Develop a graphical user interface based java program that can communicate with a real SMTP email server for sending emails

  Java program to find solution of cryptarithmetic puzzle

A solution to puzzle is S=9, R=8, O=0, M=1, Y=2, E=5, N=6, D=7. Write down a java program which finds solution to cryptarithmetic puzzle of: TOO + TOO + TOO + TOO = GOOD.

  Write a java script code for a function called areabox

Write a Html/Java Script code that does the following 1) A Function called AreaBox that takes two parameters,length & width of the rectangle and returns the Area of the Rectangle.

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