Given the following code, what will be the value of finalAmount when it is displayed? public class Order { private int orderNum;
private double orderAmount; private double orderDiscount; public Order(int orderNumber, double orderAmt, double orderDisc) { orderNum = orderNumber; orderAmount = orderAmt; orderDiscount = orderDisc; } public int getOrderAmount() { return orderAmount; } public int getOrderDisc() { return orderDisc; } } public class CustomerOrder { public static void main(String[] args) { int ordNum = 1234; double ordAmount = 580.00; double discountPer = .1; Order order; double finalAmount = order.getOrderAmount() — order.getOrderAmount() * order.getOrderDisc(); System.out.printf("Final order amount = $%,.2f\n", finalAmount); } }
1 answer:
You might be interested in
It depends on the length of the words.
Paper size is how big or small the paper is whilst paper margin is the staight lines or shapes at the sides of a page or sheet.
The tab that you would use is review