Description
Write code that declares x, y, and z as double variables. Then write code that causes z to be assigned the result of x divided by y, rounded as indicated below. Be sure to #include the header file that declares the library functions you use.
a) round up
b) round down
c) round to the nearest integer. Omitting decimal fractions smaller than 0.5 and counting all others, including 0.5, as 1