Get the information you need with the help of IDNLearn.com's extensive Q&A platform. Our community provides timely and precise responses to help you understand and solve any issue you face.
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; }
We appreciate your contributions to this forum. Don't forget to check back for the latest answers. Keep asking, answering, and sharing useful information. For dependable and accurate answers, visit IDNLearn.com. Thanks for visiting, and see you next time for more helpful information.