//// Project #1: Compute the amount due for purchases (after tax). //// Zhilin Kuang import java.util.Scanner; class Main { public static void main(String[] args) { Scanner input = new Scanner (System.in); double amount; double taxRate= 0.08625; int pen, pap, era; System.out.print ("Please enter the amount of pencils you need: "); pen = input.nextInt (); System.out.print ("Please enter the amount of sheets of paper you need: "); pap = input.nextInt (); System.out.print ("Please enter the amount of erasers you need: "); era = input.nextInt (); amount = (pen*0.15 + pap * 0.01 + era * 0.5) * (1 + taxRate) ; double roundOff = (double) Math.round(amount *100)/100 ; System.out.println ("The total amount due: $" + roundOff + "."); } }