Examlex

Solved

Given the Following Code,what Will Be the Value of FinalAmount

question 27

Multiple Choice

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.println("Final order amount = $" +
FinalAmount) ;
}
}


Definitions:

Oligocene

A geologic epoch of the Paleogene Period, occurring about 33.9 to 23 million years ago, noted for major changes in mammalian evolution.

Eocene

The Eocene is a geological epoch that lasted from about 56 to 33.9 million years ago, during which warm climates prevailed and early mammals diversified following the extinction of the dinosaurs.

Continental Drift

The theory that the Earth's continents have moved over geological time relative to each other, thus appearing to have "drifted" across the ocean bed.

Earth's Surface

The outermost layer of the Earth comprised of land and water where various life forms exist.

Related Questions