Bill of sale 

Run Settings
LanguageJava
Language Version
Run Command
// This programs purpose calculate and print a bill of sale class BillOfSale { public static void main(String[] args) { double cost=12.49; double payment=20.00; double tax=1.13; double bill=(cost*tax); double change=(payment-bill); System.out.printf("Payed with $" +payment+"\nItem purchased costs $" + cost+"\nSubtotal including tax is $" + bill + "\nThe total change due is $%.2f", change); } }
Editor Settings
Theme
Key bindings
Full width
Lines