Recent Feedback
http://wikisend.com/download/796026/Assignment_9(1).pdfUsing the RectangleProgram, GUI version, program from our class discussion as a starting point you are to make the following modifications: Modify this program so that in addition to calculating the area and perimeter of a rectangle, it additionally calculates the length of the diagonal between the corners. Length of diagonal = the square root[ width2 + height2] Hint: use methods from the Math class Since your program will be calculating the diagonal, it also needs to display that calculated value. Meaning add the necessary gui components for displaying the calculated length of the diagonal. Using the inner class CalculateButtonHandler as your example, add additional buttons and event handlers as follows: Create an Area button which when clicked just calculates the area for the rectangle and displays the results in the area JtextField. Create an Perimeter button which when clicked just calculates the perimeter for the rectangle and displays the results in the perimeter JtextField. Create an Diagonal button which when clicked just calculates the length of the diagonal for the rectangle and displays the results in the diagonal JtextField. Create a Clear button which when clicked resets (i.e. erases) all the displayed JtextField values. Additionally, you are to write 3 user-defined methods as part of the outer class as follows: a method which calculates and returns the area of the rectangle. a method which calculates and returns the perimeter of the rectangle. a method which calculates and returns the length of the diagonal of the rectangle. Now that your program has separate methods for calculating the area, perimeter, and diagonal, change each of your xxxButtonHandler inner classes to call these methods for these values rather than calculating these values within the respective xxxButtonHandler.Using the RectangleProgram, GUI version, program from our class discussion as a starting point you are to make the following modifications: Modify this program so that in addition to calculating the area and perimeter of a rectangle, it additionally calculates the length of the diagonal between the corners. Length of diagonal = the square root[ width2 + height2] Hint: use methods from the Math class Since your program will be calculating the diagonal, it also needs to display that calculated value. Meaning add the necessary gui components for displaying the calculated length of the diagonal. Using the inner class CalculateButtonHandler as your example, add additional buttons and event handlers as follows: Create an Area button which when clicked just calculates the area for the rectangle and displays the results in the area JtextField. Create an Perimeter button which when clicked just calculates the perimeter for the rectangle and displays the results in the perimeter JtextField. Create an Diagonal button which when clicked just calculates the length of the diagonal for the rectangle and displays the results in the diagonal JtextField. Create a Clear button which when clicked resets (i.e. erases) all the displayed JtextField values. Additionally, you are to write 3 user-defined methods as part of the outer class as follows: a method which calculates and returns the area of the rectangle. a method which calculates and returns the perimeter of the rectangle. a method which calculates and returns the length of the diagonal of the rectangle. Now that your program has separate methods for calculating the area, perimeter, and diagonal, change each of your xxxButtonHandler inner classes to call these methods for these values rather than calculating these values within the respective xxxButtonHandler.
Optional Information: Computer OS: Windows 7 Browser: Firefox Programming Language: java Compiler: textpad
hithanks for requesting me when you need this
The 9th of April
hiok i will do this
thanks alot, i accidently pasted two instructions on the program, u may just ignore the 2nd one. If the link doesn't work i can send it as an attachment
hiis this http://wikisend.com/download/796026/Assignment_9(1).pdfcorrectsend the correct one you need
Yes, thats correct
hiok
Relist: No answer yet.
hiyou need it 9th April , right
yeah, have u gotten a start as yet?
Relist: Incomplete answer.
hii will send it soon , within some hours
hihere is the answer link below http://wikisend.com/download/138666/rectGUI.java]rectGUI.javahope this helps
program doesn't run
hihere run and got the outputi am sending the output that i gothttp://wikisend.com/download/602764/screenshotRectangle.doc]screenshotRectangle.doccheck it
Experience: Master of Computer Application plus 5+ year experience in Software development
Thanks anyways
hiok then see you