$25.00 Java programing help
- From Computer-Science: Programming-Methods
- Closed, but you can still post tutorials
- Due on Apr. 30, 2012
- Asked on Apr. 27, 2012 at 10:27:44AM
Week 4, the assignment should be a stand-alone application.
This assignment should be an application, not an applet, written in Java with a graphical user interface. The assignment is to write an application that throws and catches an exception, using an exception type defined by the student, when the program attempts to take the square root of a negative value.
The program should contain a textfield to allow a user to enter a number and a button to allow the user to take the square root of the number.
Prompt the user for a number and try to calculate the square root of the number using the Math.sqrt() method. When the button is pressed, the application either displays the square root of the number or, if the number is negative, catches and throws an exception defined by the student. The exception handler should cause the display of an appropriate message. The exception should be of an exception type or class defined by the student.
At a minimum the application should contain a text field for input, JButton that executes the calculation, and a text field to show the results of the calculation.
All input and output should be through the GUI not via the console.
Please insert comments in the program to document the program. At a minimum the documentation should include the student’s name and a description of the program. The code should be written using the Standard Java imports that were included in the SDK/JDK. To simplify the compilation of the programs by your peers, please do not use packages.
Note that the use of Java Integrated Development Environments (IDEs) and Editors, such as NetBeans, are not allowed. Text editors should be used to create the programs.
- This tutorial was purchased 1 time and rated No Rating by students like you.
- Posted on Apr. 27, 2012 at 11:12:53AM
- This tutorial has appended information.
- This tutorial was purchased 1 time and rated No Rating by students like you.
- Posted on Apr. 27, 2012 at 11:34:27AM

- This tutorial was purchased 1 time and rated No Rating by students like you.
- Posted on Apr 27, 2012 at 12:03:02PM
- This tutorial was purchased 1 time and rated No Rating by students like you.
- Posted on Apr 27, 2012 at 6:05:17PM
- This tutorial was purchased 1 time and rated No Rating by students like you.
- Posted on Apr 27, 2012 at 7:37:30PM

Attachments:
[
SquareRootSolution/Readme.txt
SquareRootSolution/ScreenShot1.JPG
SquareRootSolution/ScreenShot2.JPG
SquareRootSolution/ScreenShot3.JPG
SquareRootSolution/SquareRoot.java
]