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;
}
A) The cost for 15 items is 3.00, and the tax for 3.00 is 0.30;
B) The cost for 15 items is 0.00, and the tax for 3.00 is 0.00;
C) The cost for 15 items is 0.00, and the tax for 3.00 is 0.30;
D) The cost for 15 items is 3.00, and the tax for 3.00 is 0.00;
Correct Answer:

Verified
Correct Answer:
Verified
Q3: In a function with call-by-reference parameters, the
Q4: In the following function, what is passed
Q5: Given the following function declaration and local
Q6: You should make a parameter a reference
Q7: Which of the following comments would be
Q9: The following is legal in a void
Q10: A void function can return any value
Q11: pre and post conditions for a function
Q12: In a function with call-by-reference parameters, any
Q13: If a function needs to modify more