Menu

[Solved] Output Systemprintln Ordered Burggetmeattype Systemprintln Cooked Burggethowcooked Systemp Q37207651

// Theoutput                                                                                                                                                

System.out.println(“You ordered ” + burg.getMeatType());
System.out.println(“Cooked ” + burg.getHowCooked());
System.out.println(“On a ” + burg.getTypeOfBun() + ” bun”);
System.out.println(“With the standard toppings of : ” +burg.getStandardToppingList());
System.out.println(“With the standard sauces of : ” +burg.getStandardSauceList());
System.out.println(“With the cheeses of : ” +burg.getCheeseToppingList() +” with a cost of “+burg.getCostOfCheeseToppings());
System.out.println(“With the deluxe toppings of : ” +burg.getDeluxToppingList()+” with a cost of “+burg.getCostOfDeluxeToppings() );
System.out.println(“your number of patties:” +burg.getnumberOfPatties());

System.out.println(“SubTotal: ” + subTotal);
System.out.println(“Amount of Tax: ” + amountOfTax);
System.out.println(“Grand Total: ” + grandTotal);
}

How do I print out the money so that the money has 2decimal places over?

Expert Answer


Answer to // The output System.out.println(“You ordered ” + burg.getMeatType()); System.out.println(“Cooked ” + burg.getHowCooked(… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *