Supermarket Pricing Example
get_input and give_output are straightforward
(just a few cin and cout statements)
the algorithm for the function price is given by the following pseudocode:
if turnover <= 7 days then
there are three constants used in this program
const double LOW_MARKUP = 0.10; // 5%
const double HIGH_MARKUP = 0.05; // 10%
const int THRESHOLD = 7; // use HIGH_MARKUP if do not
// expect to sell in 7 days or less