Lab05a - out.print("Enter the original bill...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Lab - import static java.lang.System.*; import java.util.Scanner; public class Lab05a { public static void main( String args[] ) { Scanner keyboard = new Scanner(System.in); out.print("Enter the original bill amount :: "); double amt = keyboard.nextDouble(); out.printf("Bill after discount :: %.2f\n\n",Discount.getDiscountedBill(amt)); out.print("Enter the original bill amount :: "); amt = keyboard.nextDouble(); out.printf("Bill after discount :: %.2f\n\n",Discount.getDiscountedBill(amt));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: out.print("Enter the original bill amount :: "); amt = keyboard.nextDouble(); out.printf("Bill after discount :: %.2f\n\n",Discount.getDiscountedBill(amt)); out.print("Enter the original bill amount :: "); amt = keyboard.nextDouble(); out.printf("Bill after discount :: %.2f\n\n",Discount.getDiscountedBill(amt)); out.print("Enter the original bill amount :: "); amt = keyboard.nextDouble(); out.printf("Bill after discount :: %.2f\n\n",Discount.getDiscountedBill(amt)); } }...
View Full Document

This note was uploaded on 11/11/2011 for the course C++ comp122 taught by Professor N/a during the Spring '07 term at Cy-Fair College.

Ask a homework question - tutors are online