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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  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.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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