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:

Reinforcement

In operant conditioning, a reward that, when applied following a behavior, increases the frequency of that behavior. In classical conditioning, this refers to the pairing of an unconditioned stimulus (such as food) with a conditioned stimulus (such as a bell).

Operant Response

A behavioral response that is influenced by the consequences that follow it, central to B.F. Skinner's operant conditioning theory.

Entity Theory

In Dweck’s theory of motivation, an individual’s belief that abilities are fixed and unchangeable.

Incremental Theory

In Dweck’s theory of motivation, an individual’s belief that abilities can increase with experience and practice.

Related Questions