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 Asn5Form.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 I 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 bchind 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 Origin Closest to Orign Smalest Triange Largest Triangle Fgure 1 The GUI interface for Assigament 5 Button Farthest from origin Displays the distance of the point that is farthest from the origirn Closest to origin Displays the distance of the point that is closest to the origin. Smallest TriangleDisplays the area of smallest triangle that can be formed from the Function Largest Triangle Displays the area of the largest triangle than can be formed from the points The distance between any point xi y, and the origin is given by distc To compute the area of a triangle use the fomula: Areas(s- as- bs-c) where s-(a +b+c/2 and a, b, and c are the lengths of the three sides of the triangle. Closest to origin Displays the distance of the point that is closest to the origin Smallest Triangle 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 The distance between any point , y, and the origin is given by distance - To compute the area of a triangle use the formula: drea- sts- aXs-bs-) where s(a+be)/2 and a, b, and c are the lengths of the three sides of the triangle. To calculate the length of the sides you can use the distance formula: Distance ,-- where x, . yi are the coordinates of one point and xoY: is the coordinates of the second point. Your program must be organized in modular fashion using methods. At a minimum you must have one method to calculate the distance and a second to calculate the area. Turn in a zipped project file. Name your zipped file AsnOSXXX.zip where XXX are your three initials. Upload your npped project file11cecstpenusers everyoneEnr123 This assignment will be done as a Windows Forms application. The form has been created for you and you should begin by downloading Asn5Form.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 I 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 bchind 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 Origin Closest to Orign Smalest Triange Largest Triangle Fgure 1 The GUI interface for Assigament 5 Button Farthest from origin Displays the distance of the point that is farthest from the origirn Closest to origin Displays the distance of the point that is closest to the origin. Smallest TriangleDisplays the area of smallest triangle that can be formed from the Function Largest Triangle Displays the area of the largest triangle than can be formed from the points The distance between any point xi y, and the origin is given by distc To compute the area of a triangle use the fomula: Areas(s- as- bs-c) where s-(a +b+c/2 and a, b, and c are the lengths of the three sides of the triangle. Closest to origin Displays the distance of the point that is closest to the origin Smallest Triangle 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 The distance between any point , y, and the origin is given by distance - To compute the area of a triangle use the formula: drea- sts- aXs-bs-) where s(a+be)/2 and a, b, and c are the lengths of the three sides of the triangle. To calculate the length of the sides you can use the distance formula: Distance ,-- where x, . yi are the coordinates of one point and xoY: is the coordinates of the second point. Your program must be organized in modular fashion using methods. At a minimum you must have one method to calculate the distance and a second to calculate the area. Turn in a zipped project file. Name your zipped file AsnOSXXX.zip where XXX are your three initials. Upload your npped project file11cecstpenusers everyoneEnr123

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

Students also viewed these Databases questions

Question

Question Completion Status Quinto 3 5 B 2 w T A 5 K. L S. F N M Z X

Answered: 1 week ago