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:

Market Share

The segment of a market dominated by a specific company or product.

Dogs

In a business context, refers to a portfolio category in the BCG matrix representing businesses with low market share in slow-growing markets, usually considered for divestiture.

Preferred Strategy

A favored or chosen approach to achieving objectives that is selected from among various options based on its anticipated effectiveness.

BCG Matrix

A strategic business tool developed by the Boston Consulting Group that classifies business units or products into four categories (Question Marks, Stars, Cash Cows, Dogs) based on market growth and market share to guide investment decisions.

Related Questions