Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

error:taxrate might not have been initialized

$
0
0
import java.util.*;
public class property2 {
static Scanner console = new Scanner(System.in);
public static void main (String args[]) {
double AssessedValue;
double TempValue,PropertyTax1,TaxRate,TaxableAmount1;
double PropertyTax = 1.05;
{
System.out.print("Please Enter the Assessed Value");
AssessedValue = console.nextInt();
}
{
TaxableAmount1 = AssessedValue * .95;
TempValue = TaxableAmount1/100;
PropertyTax = TempValue * 1.05;
}
{
double Taxrate = 1.05 *.95;
double TaxRate1= 1.05 + TaxRate;
double TaxableAmount = AssessedValue* .47;
double TempValue1 = TaxableAmount1/100;
double PropertyTax2 = TempValue * TaxRate1;
}

{
if ( AssessedValue<100000)
System.out.print("AssessedValue:" + AssessedValue);
System.out.print("TaxableAmount:" + TaxableAmount1);
System.out.print (" TaxRate1 :" + TaxRate);
System.out.print("PropertyTax2:"+ PropertyTax);
}



{
System.out.print("AssessedValue");
System.out.print("TaxableAmount");
System.out.print("PropertyTax");
System.out.print("PropertyTax1");
}

}


}

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>