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
Q23: A simplified version of a function which
Q24: Given the following function definitions and program
Q25: What is the correct way to call
Q26: A stub is a function that is
Q27: It is acceptable to have both call-by-value
Q29: A _ is a main program that
Q30: Testing a program with values that are
Q31: A void function can be used in
Q32: It is illegal to call other functions
Q33: Given the following function definition<br>Void shiftint& a,