Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 "Yay

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory And Application Bio Science And Bio Technology International Conferences DTA And BSBT 2011 Held As Part Of The Future Generation In Computer And Information Science 258

Authors: Tai-hoon Kim ,Hojjat Adeli ,Alfredo Cuzzocrea ,Tughrul Arslan ,Yanchun Zhang ,Jianhua Ma ,Kyo-il Chung ,Siti Mariyam ,Xiaofeng Song

2011th Edition

3642271561, 978-3642271564

More Books

Students also viewed these Databases questions

Question

Using Language That Works

Answered: 1 week ago

Question

4. Are my sources relevant?

Answered: 1 week ago