Question: Java UN Remaining Time: 1 hour, 08 minutes, 39 seconds. Question Completion Status: QUESTION 12 2 points Save Anne Given the following code, what will

UN Remaining Time: 1 hour, 08 minutes, 39 seconds. Question Completion Status: QUESTION 12 2 points Save Anne Given the following code, what will be the value of finalAmount when it is displayed? 1. public class Order 2. 3. private int order Num: private double order Amount: private double order Discount 5. 6. 7 public Order (int order Number, double order Amt, double orderDisc) 8 10 ordernum - order Number: orderAmount - order Amt: 11 12 order Discount - order Disc 13. 14 15 public double finalOrdet total() 16. 17 return orderAmount - order Discount: IR Click Save and submitted nimit. Click Save As a communer Sorel Question Completion Status: 16. 17. return orderAmount orderDiscount; 18. 19.) 20. 23 21. public class CustomerOrder 22. public static void main(String[] args) 24. + 25. Order order: 26. int ordernumber = 1234; 27. double orderAmt - 580.00; double orderDisc 50; 29. order = new Order (order Number, orderAmt, orderDisc); 30. double finalAmount = order.finalOrder Total(); 31. System.out.printf("Final order amount = $8,.2f ", finalAmount); 32. 2 28 33.) Arial 3 (12pt) HT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
