View Single Post
  #3 (permalink)  
Old April 14th, 2011, 05:07 PM
sergeySE sergeySE is offline
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The rest of the code .
And remember to use command line to enter arguments (see lesson 1 in the book ) :-)

public class Tax
{

double gi;
String st;
int dp;


public double calcTax(double a,String b,int c ) {

gi=a;
st=b;
dp=c;

double stateTax = 0;

if (gi < 30000) {

stateTax=gi*0.05;

}
else{

stateTax= gi*0.06;
}
return stateTax;

}

}
Reply With Quote