In Python, write a program that takes a positive integer as input and outputs a string of 1's and 0's representing the integer in binary. For an integer x, the algorithm is as follows:
1. As long as x is greater than 0:
- Output x % 2 (remainder is either 0 or 1)
- x = x // 2
Note: The above algorithm outputs the 0's and 1's in reverse order. You will need to write a second function to reverse the string.
Example:
If the input is 6, the output is 110.
The program must define and call the following two functions:
1. Define a function named int_to_reverse_binary() that takes an integer as a parameter.