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);
}
}
```
a. 528.00
b. 580.00
c. There is no value because the constructor has an error.
d. There is no value because the object, order, has not been created.
d. There is no value because the object, order, has not been created.
You might also like to view...
Answer the following statements true (T) or false (F)
1. Arrays consist of items of different types. 2. An array reference may be assigned only to a different array of the same size as the array it’s currently referencing. 3. The first element in every array is the 0th element. 4. The position number in square brackets is formally called an index. 5. Only literal integer values can be used as an index into an array.
What feature available in Storage Spaces lets you combine traditional mechanical HDDs with SSDs to get better performance?
A. iSCSI SAN B. Features on demand C. Thin provisioning D. Tiered storage