Time left Write a java program to compute the total tax owed by an individual. You...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Time left Write a java program to compute the total tax owed by an individual. You should ask the user to give you his/her name, age, mar status (1 for Married, 2 for divorced, 3 for single, and 4 for widowed) and taxable income. Based on the user's age, marital status, and income, his/her tax rate will change. The table below shows how this tax rate changes according to these inputs. If the user's age is less than 18, s/he will pay no tax (in other words the tax rate is 0%). Once you get the correct tax rate, you need to calculate how much tax will be deducted from his/her salary and how much his/her income will be after-tax and print back the information to him/her. The program will allow the user to enquire the income salary for several people: use a loop with sentinel. This program will force the user to enter correct input data for the age and marital status. You need to use the NumberFormat class to print the tax and income after tax in S. Married or divorced Single or Widowed Taxable Income Tax Rate Tax Rate $48,000 and $97,000 26% 30% The sample output will be: "Mike, based on the income provided, you owe $10,000 for the fiscal year 2017 and thus your annual salary after tax is $65,000." Activa Time left Write a java program to compute the total tax owed by an individual. You should ask the user to give you his/her name, age, mar status (1 for Married, 2 for divorced, 3 for single, and 4 for widowed) and taxable income. Based on the user's age, marital status, and income, his/her tax rate will change. The table below shows how this tax rate changes according to these inputs. If the user's age is less than 18, s/he will pay no tax (in other words the tax rate is 0%). Once you get the correct tax rate, you need to calculate how much tax will be deducted from his/her salary and how much his/her income will be after-tax and print back the information to him/her. The program will allow the user to enquire the income salary for several people: use a loop with sentinel. This program will force the user to enter correct input data for the age and marital status. You need to use the NumberFormat class to print the tax and income after tax in S. Married or divorced Single or Widowed Taxable Income Tax Rate Tax Rate $48,000 and $97,000 26% 30% The sample output will be: "Mike, based on the income provided, you owe $10,000 for the fiscal year 2017 and thus your annual salary after tax is $65,000." Activa
Expert Answer:
Answer rating: 100% (QA)
Heres a Java program that calculates the total tax owed by an individual based on their age marital ... View the full answer
Related Book For
McGraw-Hill Education SAT 2017
ISBN: 9781259641657
1st Edition
Authors: Christopher Black, Mark Anestis
Posted Date:
Students also viewed these programming questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
re Regular Languages and Finite Automata (a) Let L be the set of all strings over the alphabet {a, b} that end in a and do not contain the substring bb. Describe a deterministic finite automaton...
-
How many of the following could be valid JDBC URL formats for an imaginary driver named magic and a database named box? A. Only first B. Only second C. Only third D. first and second E. first and...
-
What is meant by return on quality? Why do you think that the concept evolved? Give an example.
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
True or False. A spectrum analyzer is a device that analyzes a signal in the frequency domain.
-
VIP Limo Service was organized to provide limousine service between the airport and various suburban locations. It has just completed its second year of business. Its trial balance is below. The...
-
Bob Mendel is the chairman and founder of ABL Company - a food processing company in CalgaryThe company is a mid- size private enterprise corporation with great achievement and competitiveness within...
-
Briefly describe two 2 products goods or services offered at a business you are familiar with Next identify two 2 major competitors and describe the two 2 products they offer that compete with...
-
Find the range, mean, and standard deviation for the data set. 18, 22, 18, 19, 21, 21, 22, 20, 21, 19
-
There is a virus turning people into zombies who attack the living and never die. No one knows where it came from, but when the virus was first detected, it was 3 days after a group of 20...
-
Suppose X1, X2,... are independent random variables each with a N(0, 1) dis- tribution. Let F, denote the information in X,..., Xn, and let A1, A2,... be a sequence of random variables such that for...
-
The following is a transcription of a real conversation with Chat GPT (the artificial intelligence language model that has been in the news lately) that Jerrod had on January 25, 2023. User input:...
-
In a mathematical universe and in the time t = to, a disk starts rotating with a constant angular velocity of Wdisk =+ b + ck, over which there is a randomly-located particle P with the position...
-
Read the case study, Astor Lodge & Suites, Inc., and reviewed the case scenario, respond to the following question with thorough explanations and well-supported rationale. Discuss the importance...
-
Wal-Mart is the second largest retailer in the world. The data file on the disk holds monthly data on Wal-Marts revenue, along with several possibly related economic variables. a) Using computer...
-
Describe how partial and circular reasoning can be helpful or harmful in resolving ethical dilemmas.
-
Describe the various legal risks for nurses.
-
Describe the various roles of advanced practice nurses.
Study smarter with the SolutionInn App