Make a program that will accept 5 numbers and will display the number with the highest and lowest value, depending on the option of the user then display its square root. The program should accept only numerical characters and will display an error message if the entries are invalid.