Processing:
Declare a String object to hold the programmer’s name - FINISH
Declare three floating-point numbers and fill them from the Scanner input - FINISH
Add the floating-point numbers together to create a subtotal - FINISH
Calculate the tax for this subtotal, based on a tax rate of 9.25% - FINISH
Calculate the total amount, which is the sum of the tax amount and subtotal - HELP ( no error but it's giving me the wrong answer)
String firstNameString; float firstTax; float secondTax; float thirdTax; final double taxRate = 9.25; Scanner inputScanner = new Scanner(System.in); firstNameString = JOptionPane.showInputDialog("Enter your name"); System.out.print("\nEnter your First Number: "); firstTax = inputScanner.nextFloat(); System.out.print("\nEnter your Second Number: "); secondTax = inputScanner.nextFloat(); System.out.print("\nEnter your Third Number: "); thirdTax = inputScanner.nextFloat(); //Display our input values System.out.println("Name: " + firstNameString); System.out.println("Total of three numbers: " + (firstTax + secondTax + thirdTax)); System.out.println("Tax " +(firstTax + secondTax + thirdTax) / taxRate); System.out.println("Subtotal Tax: "+firstTax + secondTax + thirdTax + (+firstTax + secondTax + thirdTax / taxRate));