methods-mt

hi programmers could you please read this and generate code for me

"The tax Advantage Company provides free tax services to residents who cannot calculate their personal taxes or pay for calculation by a public tax service.You have been asked to write JAVA program that will calculate on estimated tax for either a single or Married taxpayer,given a keyboard income entry.After the income is entered,a code status S for single or Mfor married is entered.
The necessary classes are a Tax class with a Main() method for keyboard entry of Income and code status value and a Taxreturn class to calculate the tax based on the Input. The Input value should be passed from the Tax class to the Taxreturn class through the Instantiation of a TaxReturn object.The instantiation could take a form such as TaxReturn a TaxReturn= new TaxReturn (income,status)
For Tax payers,two tax rates are needed,15% and 30%
For single Taxpayer the cutoff rate of 15% is $10,000 and 30% above $10,000.
For Married payers the cutoff rate is 15% for amount below $20,000 and 30% for amount of $20,000 and above."
you can even post the code to lyubamt@yahoo.com

Comments

  • [b][red]This message was edited by zibadian at 2007-3-9 12:36:43[/red][/b][hr]
    : hi programmers could you please read this and generate code for me
    :
    : "The tax Advantage Company provides free tax services to residents who cannot calculate their personal taxes or pay for calculation by a public tax service.You have been asked to write JAVA program that will calculate on estimated tax for either a single or Married taxpayer,given a keyboard income entry.After the income is entered,a code status S for single or Mfor married is entered.
    : The necessary classes are a Tax class with a Main() method for keyboard entry of Income and code status value and a Taxreturn class to calculate the tax based on the Input. The Input value should be passed from the Tax class to the Taxreturn class through the Instantiation of a TaxReturn object.The instantiation could take a form such as TaxReturn a TaxReturn= new TaxReturn (income,status)
    : For Tax payers,two tax rates are needed,15% and 30%
    : For single Taxpayer the cutoff rate of 15% is $10,000 and 30% above $10,000.
    : For Married payers the cutoff rate is 15% for amount below $20,000 and 30% for amount of $20,000 and above."
    : you can even post the code to lyubamt@yahoo.com
    :
    :
    Here is the taxReturn() function:
    [code]
    double taxReturn(double income, int status) {
    double rate = 0.15;
    if ((status == 0) && (income > 10000)) || ((status == 1) && (income > 20000))
    rate = 0.30;
    return income*rate;
    }
    [/code]
    The rest is up to you.
  • yah thanks friends i have managed to complete the rest part of my problem .

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories