Java Source Code
(Financial application: print a tax table) Listing 3.5 gives a program to compute tax. Write a method for computing tax using the following header:
public static double computeTax(int status, double taxableIncome)
Use this method to write a program that prints a tax table for taxable income from $50,000 to $60,000 with intervals of $50 for all the following statuses:
Taxable Single Married Joint or Married Head of
Income Qualifying Widow(er) Separate a House
50000 8688 6665 8688 7353
50050 8700 6673 8700 7365
...
59950 11175 8158 11175 9840
60000 11188 8165 11188 9853
Hint: round the tax into integers using Math.round (i.e., Math .round(computeTax(status, taxableIncome)).
12 years ago 5
Purchase the answer to view it
- java_for_taxcalculation.docx
- 1. Suppose that you want to cook a 1 inch (2.5 cm) thick steak to medium doneness, which is an...
- Mr. Holtzclaw sells his home for $240,000. He must pay the real estate agent a 5% commission. How much is...
- Assignment Now that you have learned what life was like for Americans during the Civil War, you will use your historical...
- Internal Control
- Linguistic of Babies
- Criminal Justice DB cite at least 1 journal article 250 word min. Deadline is 26 Sept @0700 EST
- Essay
- Project assigment. Please let me know if you are able to help with this
- it is 12pm in greenwich and 8am in city x. what is the longitude of city x
- CJA 334 Week 5 Learning Team Research Proposal Part II Paper and Presentation / UoP