Define a function named apart that breaks a number into its whole-number part and its fractional part. For instance, given the number 3.14, apart would return the values 3 and .14. Function apart has one type double input parameter and two output parameters.
What will be an ideal response?
```
void apart ( double x, int& whole, double& frac )
{
whole = (int)x;
frac = x - whole;
}
```
Computer Science & Information Technology
You might also like to view...
All of the following layouts include specific buttons to quickly and easily insert objects EXCEPT:
A) Comparison. B) Content with Caption. C) Title Slide. D) Title and Content.
Computer Science & Information Technology
The SmartArt ________ pane displays an outline view for typing text items that are then placed in the SmartArt diagram
Fill in the blank(s) with correct word
Computer Science & Information Technology