Discover the answers you need at Westonci.ca, where experts provide clear and concise information on various topics. Ask your questions and receive detailed answers from professionals with extensive experience in various fields. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

What is the output from main (below) after the following function is called. void calculateCost(int count, double& subTotal, double& taxCost) // definition { if ( count < 10) subTotal = count * 0.50; else subTotal = count * 0.20; taxCost = 0.1 * subTotal; } int main() { double tax = 0.0, subTotal = 0.0; calculateCost(15, subTotal, tax); // function call cout << "The cost for 15 items is " << subTotal << ", and the tax for "<< subTotal << " is " << tax << endl; return 0; }

Sagot :

jmari9

Answer:

     

Explanation:

We hope this was helpful. Please come back whenever you need more information or answers to your queries. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Thank you for visiting Westonci.ca. Stay informed by coming back for more detailed answers.