1.)Write a code segment that obtains an input from a text field called inputField, converts the input to an integer, and outputs the square root of the integer to a text field called outputField.
2.)Assume that an action listener has been added to button. Which method runs when the user clicks the button.
3.)Describe the roles and responsibilities of the model, view, and controller classes in a GUI program.