Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using Java (urgent) and also need a sample txt file This is not a normal way to do this. I need good examples and an
using Java (urgent) and also need a sample txt file
This is not a normal way to do this. I need good examples and an assignment. Methods to compute taxes in an imaginary world. Here is the wishful data $10,000 $10,000 1-single 5% $500+10% of amount over $10,000 2-married 6% | $600+11% of amount over $10,000 Read from a file named "tax.txt" the: User's status (2 for married, 1 for single) Year of birth (of oldest spouse if married) .Current year (ignoring month and day) Annual income You must test all cases. Use at least one example for each case. That makes a minimum of 8 examples. Submit trace and handcheck. If the person is married, call method married) to compute and return the tax. Otherwise call method single). If the age is over 60, there is a reduction of 10% of the tax. This must be done in each of the above methods. However, they must first call a method (within the single and within the married method] that determines if the user will be at least 60 years old on the last day of the current year and returns true or false Print the status "married" or "single"), the income, the tax and a message. If the tax is les than $2000, the message is "Boo". Otherwise it is "YayStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started