Write down a Ruby program that continuously reads in the number, x, from the screen, and then computes and displays its:
i) Factorial, if x is less than 15;
ii) Fourth power, if 15 < x ≤ 35 and
iii) Square, if x > 35.
Your program must run till the user wishes to stop running it. In other words, after processing first number, it must ask the user if he or she wishes to continue. If the answer is no the program terminates; if answer is yes it reads in another number, processes it and asks user again till the user replies no.