Write the size calculation program described in Chapter 3, Programming Project 8, with the following additional requirements/specifications.
double round(double x, int precision); // Precondition: // x may be positive or negative // precision should be non-negative (check whether it is!) // Postcondition: // Returns the value of x rounded to the specified precision // (number of digits after the decimal point)
round(1.23456, 0) = 1
round(1.23456, 1) = 1.2
round(1.23456, 4) = 1.2346
round(-5.62, 0) = -6
round(-5.62, 1) = -5.6
round(-5.26, 1) = -5.3
Create and print one sample run that shows module testing of the round function, and one which shows operation of the size calculation program.