SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 2 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 06 Jan 2018 My Price 10.00

triangle class that executes command line driver

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.>

 

 

Attachments:

Answers

(5)
Status NEW Posted 06 Jan 2018 12:01 PM My Price 10.00

-----------  ----------- 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

Not Rated(0)