Pythagoras+Function

Write a program that will prompt a user for 2 sides of a right angle triangle and output the length of the third side.

Requirements:
The user can put in any two sides she wants (i.e. give two sides and find the length of the hypotenuse, or give one side and the hypotenuse and one side length and then calculate the other).

Input and program output must occur in the main part of your program.

Data calculations must occur in one or more functions which are called by your main program.

Program should make sure that the user doesn’t enter a hypotenuse length that is shorter than the other side entered.

Program should loop prompting for side lengths and doing calculations until the user chooses to exit.

Submit your fully documented program to the handin folder called Pythagoras.