This preview shows page 1. Sign up to view the full content.
Unformatted text preview: System.out.print("Please enter the price of product: "); double unitPrice = in.nextDouble(); System.out.print("Please enter the quantity of product: "); int unitQuantity = in.nextInt(); // 2. Process double totalPrice= unitPrice * unitQuantity; // 3. Output System.out.println(" The total price is: " + totalPrice); } }...
View Full Document
This note was uploaded on 12/07/2011 for the course BUS 350 taught by Professor Leighjin during the Fall '11 term at S.F. State.
- Fall '11