Skip to main content
0 online
iwz iwz

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?

theremin thereminOG 2002

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();
}
}

Welcome Back to eZabel

It's been a while. Here's what's new.

eZabel Lore

A complete history of our community — stats, Hall of Fame, legendary threads, and more.

View the Lore →

Everything Preserved

All 225,969 pieces of content from 2000–2014 are here — forums, messages, journals, photos, polls, and events.

💎

Gems

Spot something you love — a legendary comment, a classic thread, a great photo? Log in and click the diamond icon to mark it as a Gem. Add a note about why it's special. The best stuff surfaces on the Gems page.