Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# programming This assignment will be done as a Windows Forms application. The form has been created for you and you should begin by downloading

C# programming
image text in transcribed
image text in transcribed
This assignment will be done as a Windows Forms application. The form has been created for you and you should begin by downloading AsnSForm zip from the web site. Unzip this file and use Visual Studio to open it as a project by double clicking on the solution file name. If you run the program you will get a screen similar to that shown in Figure 1 below Click on the Load button to get a dialog box which will allow you to load Asn5.txt. This file is in the project folder under bin/Debug. Selecting the file causes it to be loaded into a two- dimensional array named dataPoints. This array holds up to 20 points where dataPointsi, 0 holds the x value for point i and dataPointsi, 1] holds the y value for point i. All points are in Cartesian coordinates. The code behind the Load button has been written for you. For this assignment you must write the code behind the other four buttons Load File Farthest from Ongin Closest to Onigin Smalest Triangle Largest Triangle Figure 1 The GUI interface for Assignment 5 Button Function Farthest from origin Displays the distance of the point that is farthest from the origin. Closest to origin Smallest Triangle Displays the distance of the point that is closest to the origin. Displays the area of smallest triangle that can be formed from the Largest Triangle Displays the area of the largest triangle than can be formed from nts The distance between any point x yi and the origin is given by distance- This assignment will be done as a Windows Forms application. The form has been created for you and you should begin by downloading AsnSForm zip from the web site. Unzip this file and use Visual Studio to open it as a project by double clicking on the solution file name. If you run the program you will get a screen similar to that shown in Figure 1 below Click on the Load button to get a dialog box which will allow you to load Asn5.txt. This file is in the project folder under bin/Debug. Selecting the file causes it to be loaded into a two- dimensional array named dataPoints. This array holds up to 20 points where dataPointsi, 0 holds the x value for point i and dataPointsi, 1] holds the y value for point i. All points are in Cartesian coordinates. The code behind the Load button has been written for you. For this assignment you must write the code behind the other four buttons Load File Farthest from Ongin Closest to Onigin Smalest Triangle Largest Triangle Figure 1 The GUI interface for Assignment 5 Button Function Farthest from origin Displays the distance of the point that is farthest from the origin. Closest to origin Smallest Triangle Displays the distance of the point that is closest to the origin. Displays the area of smallest triangle that can be formed from the Largest Triangle Displays the area of the largest triangle than can be formed from nts The distance between any point x yi and the origin is given by distance

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions