Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

700 karma points Exercising the model-view-controller pattern using Java Swing.

ID: 3629833 • Letter: 7

Question

700 karma points

Exercising the model-view-controller pattern using Java Swing.

The work is about creating a graphical view (another view beside the textual view) for a right triangle model. The graphical view displays the same changes as the textual view when the changes are made to the right triangle model through the textual view. You may use the same controller for the graphical view as the textual view or create another one dedicated to the graphical view. The user will not directly interact with the graphical view. It is solely for displaying the changes made through the textual view. This will make the work simpler.

I'm posting two questions for the same question so answer the 2 questions (same answer) so you get 700 karma points

Explanation / Answer

hope this will help u public class Triangle { private int side1; private int side2; private int side3; public Triangle( int s1, int s2, int s3 ) { setS1( s1 ); setS2( s2 ); setS3( s3 ); } // end constructor public void setS1( int length ) { if ( length < 0 ) { length = 0; side1 = length; } } public void setS2( int length ) { if ( length < 0 ) { length = 0; side2 = length; } } public void setS3( int length ) { if( length < 0 ) { length = 0; side3 = length; } } public int getS1() { return side1; } public int getS2() { return side2; } public int getS3() { return side3; } public boolean isRightTriangle() { int largeside; int a, b; largeside = side1; a = side2; b = side3; if ( largeside
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote