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...

Define two output functions for the data types: printCatNum and printEntry. Output of a catalog entry should resemble the following example:

Number: EXC-412 Description: 2400 BAUD MODEM Wholesale Price: $79.86 Retail Price: $119.99

Computer Science & Information Technology

Password crackers enable investigators to circumvent many ________ measures employed by the suspect

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Social media services such as Facebook emphasize _______ over the other six factors found in social media honeycombs.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To create a complement mask, we set the bits to be complemented to 1 and the rest of the bits to 0.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology