The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Hi, I need help with this assignment using Microsoft Visual Studio 2015. It is for my Visual Basics.net class. It also deals with creating GUI's.
|
Name |
 |
|
Date |
 |
|
Class |
 |
|
Section |
 |
Â
INSTRUCTIONS
Write a triangle class that executes on the following command line driver:
Â
Sub Main()
       ' instnatiate a Triangle
       Dim myTriangle As Triangle = New Triangle(3, 4)
Â
       ' display the Triangle's information
       myTriangle.DisplayInformation()
End Sub
Â
The class should include private data members to contain the lengths of the adjacent, opposite, and hypotenuse side of the Triangle. Additionally, create data members to hold the area and perimeter of the Triangle. Include a default constructor that initializes the values to zero and an overload constructor that allows values for the opposite side and adjacent side to be provided. The class should provide properties that allow client code to get and set the adjacent and opposite sides of the Triangle, and get the hypotenuse, area, and perimeter. Provide a public, command-line method that allows information about the Triangle to be neatly displayed on the console. Provide code for a destructor that prints a message indicating that the destructor is executing. Adhere to all of the discussed principles of object-oriented design and develop an intuitive, robust class. When you test your code with the driver provided above, you should see the following output on the screen:
Â

Â
After you have written the command-line class, create a windows form that wraps up the class with a GUI. Provide controls that allow the user to provide inputs for the adjacent and opposite sides of the Triangle. Include an update button that causes the display the update and refreshes the numbers that display on the image. Your GUI should resemble the following display:
Â

Â
Â
Â
CODED SOLUTIONS
<Place your solution here. Please make sure your IDE is set to font Courier New (10pt) before you copy/paste>
Â
SCREEN SHOT
<Paste your screen shot here. Use Alt+PrintScreen to capture the appropriate console output window only.>
Â
Â
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly