Well, your first task could be to come up with a nice object model (on a high, pseudo level).
What object(s) do you think you might need for this task?
Well, I went ahead and just tried to do all the coding as best as I could come up with. How does this look?
import java.io.*;
import java.util.*;
import javax.swing.JOptionPane;
public class PropertyTax
{
public static void main(String[] args)
{
double inputAssessedValue;
double taxableAmount;
double taxRate_hundreds;
double finalPropertyTax;
inputAssessedValue = JOptionPane.showInputDialog
("Enter assessed value");
taxableAmount = 0.92 * inputAssessedValue;
taxRate_hundreds = taxableAmount / 100;
finalPropertyTax = taxRate_hundreds * 1.05;
JOptionPane.showMessageDialog(null,
String.format("The Assessed Value equals $ %.2f%n",inputAssessedValue);
+ String.format("Taxable Amount equals $ %.2f%n", taxableAmount);
+ String.format(Tax Rate for each $ 100.00: $ 1.05);
+ String.format("Property Tax equals %.2f%n", finalPropertyTax),
"Property Tax Calculation";
JOptionPane.INFORMATION_MESSAGE);
PrintWriter outFile = new PrintWriter("a:\\proptax.txt")
outFile.close();
}
}