void SetTwoDecimalPlaces () { cout.setf(ios::showpoint); //forces decimal point to be shown cout.setf(ios::fixed); //prevents scientific notation cout.precision (2); //sets 2 digits of precision }