Write two program segments (functions) that accomplish each of the following:
a) A function that Calculates the integer part of the quotient when integer a is divided by integer b.
b) A function that Calculates the integer remainder when integer a is divided by integer b.
Use the functions developed in (a) and (b) to write a function that inputs an integer between 1 and 32767 and prints it as a series of digits, each pair of which is separated by two spaces. For example, the integer 4562 should print as follows: 4 5 6 2