/* Laboratory Assignment For Wednesday of Week of 4/10/04 1) Tax on the yearly income is calculated as per following rule. Income upto 1,00,000 rupess 10% tax Additional income above 1,00,000 rupess and upto 2,00,000 15% tax Additional income above 2,00,000 25% tax example: Input=216000 Income in bracket 0 to 100,000 is 100,000 so tax 10000 Income in bracket 100,000 to 200,000 is 100,000 so tax is 15000 Income in bracket 200,000-plus is 16,000 so tax is 4000 So total tax is 29,000. Your method should have int "income" as the input parameter and it should print the tax. The output type should be void. */ class CalculateTax { public void generate(double inc) { double tax = 0.0; if(inc <= 100000) tax = .1 * inc; else if(inc<= 200000) tax = 10000 + .15*(inc-100000); else tax = 10000 + 15000 + .25*(inc-200000); System.out.println("THE Tax is:: " + tax ); return; } } class soln9wed1 { public static void main(String args[]){ MainWindow mainWindow; InputBox inputBox; boolean out ; mainWindow = new MainWindow(); mainWindow.setVisible(true); inputBox = new InputBox(mainWindow); CalculateTax b = new CalculateTax(); double income; income= inputBox.getDouble("Please enter the income"); b.generate(income); } }