Transcribed Image Text: Given the following code, what will the output be

Transcribed Image Text: Given the following code, what will the output be? Will the code compile and execute? If so.
what will be the value of finalAmount when it is displayed? If there is an error, what is the
error? Give the best description you can give
READ CAREFULLY!
class Order{
private int orderNum;
private double orderAmount;
private double orderDiscount;
public Order (int orderNumber, double orderkmt, double
orderDisc) (
orderNum = orderNumber;
orderAmount = orderamt;
orderDiscount = orderDisc;
public double getOrderAmount () {
return orderAmount;
public double getOrderDisc () {
return orderDiscount;
public clas: Main {
public static void main (String(] args) {
int ordNum = 1234;
double ordimount = 580. 00;
double discountPer = .1;
Order order = new Order (ordNum, ordAmount,
discountPez);
double finalAmount = order.getOrderAmount ()
order.getOrderAmount () – order.getOrderDisc ();
System.out.println (“Final order amount = $” +
EinalAmount);

-25-


Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us



Essay Hope