Given the following code, what will be the value of finalAmo…

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 double finalOrderTotal()    {       return orderAmount – (orderAmount * orderDiscount);    } } public class CustomerOrder {    public static void main(String[] args)    {       Order order;       int orderNumber = 1234;       double orderAmt = 100.00;       double orderDisc = .1;       order = new Order(orderNumber, orderAmt, orderDisc);       double finalAmount = order.finalOrderTotal();       System.out.println(“Final order amount =  ” + finalAmount);    } }

Based on the previous question, create a Car object where th…

Based on the previous question, create a Car object where the manufacturer is BMW, the model is X6, the year is 2024, and the price is 55314.45.   public class CarDemo{     public static void main(String[] args{               //Your code here     }}