Lab 9
October 24, 2000
Write a program that splits a floating point number into its whole and decimal parts.
It should contain a function called split that has three arguments.
The first is the original number, passed by value.
The second is an integer to contain the whole number portion, this should be passed by reference.
The third should also be passed by reference, this should be a float to contain the decimal portion of the original number.
You should prompt the user for the original number in your main function.
You should also print the whole and decimal parts in your main function after the call to split.