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 = 580.00;
double orderDisc = .1;
order = new Order(orderNumber, orderAmt, orderDisc);
double finalAmount = order.finalOrderTotal();
System.out.printf("Final order amount = $%,.2f\n",
finalAmount);
}
}

```

a. 528.00
b. 580.00
c. 522.00
d. There is no value because the object, order, has not been created.


c. 522.00

Computer Science & Information Technology

You might also like to view...

A(n) ________ is when the field only depends on one part of a composite or concatenated key. In other words, the field is determined by only one piece of a multifield key

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can change an image's height and width by changing options on the Appearance tab in the ____________________ dialog box.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Number signs indicate that a text box has been resized too small to display the contents properly.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The organization of a task or process so it requires at least two individuals to work together to complete is known as __________ control.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology