Example
double wholesale_cost, retail_price;
introduction( ); //fully tested
get_input(wholesale_cost, shelf_time); //fully tested
retail_price = price(wholesale_cost, shelf_time);//stubbed out
give_output(wholesale_cost, shelf_time, retail_price);//being tested
void give_output(double cost, int turnover, double price)
cout.setf(ios::showpoint);
cout << "Wholesale cost = $" << cost << endl
<< "Expected time until sold = "
<< turnover << " days" << endl
<< "Retail price= $" << price << endl;
double price(double cost, int turnover)
return 9.99; //Not correct, but good enough for some testing.