Create a program that will accept a real number from the user and then display its whole and fractional parts. (For example, if the input is 5.32, the outputs should be the integer value 5 and the floating point value 0.32.) To perform the actual calculation, write a function that will extract the whole and fractional parts of a real number.