Examlex

Solved

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

question 53

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.printf("Final order amount = $%,.2f\n",
FinalAmount) ;
}
}


Definitions:

Coleoptile

A protective sheath covering the emerging shoot in monocotyledons like grasses and grains.

Frits Went

A botanist known for his pioneering work on plant hormones and their role in plant growth and development.

Auxin

A class of plant hormones that play a key role in coordinating growth and behavioral processes, including cell elongation and branching.

Kenneth Thimann

A renowned botanist and biochemist, best known for his work in plant physiology, particularly in the discovery of auxins, a class of plant growth hormones.

Related Questions