//******************************************************************* // // Program: Taxed Cost Calculator // // Author: Robert Rosebrugh, rrosebrugh@mta.ca // // Description: Illustrates free function // // Date: 1999/10/8 // // Course Information: CS 1711, Section B, Class Example // // Filename: costcalc.cpp // //******************************************************************* #include #include #include "textlib.h" // this calculates tax-in cost double totalCost(int numItems, double price); void main() { int numItems; // how many double price, // at what price taxedTotal; // total with tax included cout << "Enter the number of items purchased and the price>" << endl; cin >> numItems >> price; taxedTotal = totalCost(numItems, price); cout << "The taxed total is : $" << setreal(8,2) <