Considering the right triangle example for the Model-View-Controller pattern mentioned below, Create a graphical view (another view beside the textual view) of the right triangle. The graphical view displays the same changes as the textual view when changes are made to the right triangle model through the textual view. There is no need for a separate controller for the graphical view as the user will interact through the controller of the textual view. The graphical view is solely for displaying the changes made through the textual view. Submit the source code and several screenshots of the graphical view showing changes. Example : • Model: a right triangle Base and height can be modified • Different views of triangle – Displaying the lengths of the triangle’s sides – Drawing the triangle graphically – Logging changes of the triangle’s states in file • Controller – To modify the triangle
Considering the right triangle example for the Model-View-Controller pattern mentioned below, Create a graphical view (another view beside the textual view) of the right triangle. The graphical view displays the same changes as the textual view when changes are made to the right triangle model through the textual view. There is no need for a separate controller for the graphical view as the user will interact through the controller of the textual view. The graphical view is solely for displaying the changes made through the textual view. Submit the source code and several screenshots of the graphical view showing changes.
Example : • Model: a right triangle Base and height can be modified
• Different views of triangle
– Displaying the lengths of the triangle’s sides
– Drawing the triangle graphically
– Logging changes of the triangle’s states in file
• Controller
– To modify the triangle
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images