Examlex

Solved

What Is the Output of the Following Function and Function

question 28

Multiple Choice

What is the output of the following function and function call?
Void calculateCostint count, float& subTotal, float taxCost) ;
Float tax = 0.0,
Subtotal = 0.0;
CalculateCost15, subtotal,tax) ;
Cout << "The cost for 15 items is " << subtotal
<< ", and the tax for " << subtotal << " is " << tax << endl;
//end of fragment
Void calculateCostint count, float& subTotal, float taxCost)
{
If count < 10)
{
SubTotal = count * 0.50;
}
Else
{
SubTotal = count * 0.20;
}
TaxCost = 0.1 * subTotal;
}


Definitions:

Effective-Interest Method

An accounting technique used to amortize the discount or premium on bonds payable over the life of the bonds, more precisely matching interest expense with the accounting periods in which they are incurred.

Unamortized Bond Discount

The portion of a bond discount that has not yet been expensed to interest expense over the life of the bond.

Bonds

Fixed-income investment products that represent loans made by an investor to a borrower, typically corporate or governmental.

IFRS

International Financial Reporting Standards, a set of accounting standards developed by the International Accounting Standards Board (IASB) that serve as a global framework for the preparation of public company financial statements.

Related Questions