Menu

[Solved] Output Following Function Function Call Void Calculatecost Int Count Float Subtotal Float Q37181706

What is the output of the following function and function call? void calculateCost(int count, float&subTotal, float&taxCost)

What is the output of the following function and function call? void calculateCost(int count, float&subTotal, float&taxCost) float tax- 0.0, subTotal -0.0; calculateCost(15, subTotal,tax); cout << “The cost for 15 items is ” << subtotal fend of fragment “, and the tax for ” «subTotal << ” is ” << tax << endl; void calculateCost(int count, float& subTotal, float& taxCost) if ( count 10) subTotal count 0.50; else SubTotal = count * 0.20; taxCost 0.1 subTotal; Select one: a. The cost for 15 items is 0.00, and the tax for 3.00 is 0.00; b. The cost for 15 items is 3.00, and the tax for 3.00 is 0.30; 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; Show transcribed image text What is the output of the following function and function call? void calculateCost(int count, float&subTotal, float&taxCost) float tax- 0.0, subTotal -0.0; calculateCost(15, subTotal,tax); cout

Expert Answer


Answer to What is the output of the following function and function call? void calculateCost(int count, float&subTotal, float&taxC… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *