This preview shows page 1. Sign up to view the full content.
Unformatted text preview: int bookQuantity = in.nextInt(); //Process double totalPrice = 0; double totalBookPrice = unitBookPrice * bookQuantity; totalPrice = totalPrice + totalBookPrice; double totalTax = totalBookPrice * SALES_TAX_RATE; totalPrice = totalPrice + totalTax; double totalShipping = bookQuantity * SHIPPING_FEE; totalPrice = totalPrice + totalShipping; //Output System.out.println("The total price with tax and shipping is: " + totalPrice); } }...
View Full Document
- Fall '11