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...
The ________ Zoom feature of Read Mode resizes graphics to fit the screen you are using
Fill in the blank(s) with correct word
Some firewalls use authentication to give employees access to common resources.
Answer the following statement true (T) or false (F)
Class diagrams are the software requirements specifications for each module in an application.
Answer the following statement true (T) or false (F)
A multicore processor is generally slower and less powerful than a single core processor.
Answer the following statement true (T) or false (F)