I have an assignment that I want to be done by visual studio 2015. also it should has a design that is in similar way with the one that is in the attachments. also I want you to write comments to be above each step you do in the program.
this link that has the text is also attached with the assignment and you will use it.
http://csserver.evansville.edu/~blandfor/Engr123/Asn08Test1.txt
CS 210
Programming Assignment 8
File Plot
Assigned: April 4, 2016
Due: April 13, 2016
Write a C# program to read in a data file which contains a sequence of data points and
plot the data points as a continuous graph in the Cartesian plane. Your program should
the chart tool in the C# forms toolbox.
Your user GUI should look something like that below. The File menu should have at
least two items: Open and Exit. The Open option will allows the user to open a dialog
box and select a file to graph. The Exit option will exit the program. The About menu
will give a new form that will give the name of the program, the author’s name, the date,
and the line “Engr 123 Assignment 8”. The About box will have one button which will
allow the user to close the box. You should use a text box or a label to print the plot
status. The status should indicate the minimum and maximum values in the x and y
directions.
Test data for this assignment is on the web site as Asn08Test.zip
Figure 1
Typical user interface with a panel and a menu
Figure 2
Typical About box
After you get your program running correctly, place a copy of the design into the project
folder as a doc or docx file. Right click on the project folder and choose Send To →
Compressed zip file. Rename the compressed zip file as Asn08XXX.zip where XXX are
you three initials. Upload the renamed file to \\cecsfp01\users\everyone\engr123.
Engr 123
Notes on using the Chart tool
The chart tool in the forms toolbox allows you to plot a variety of charts and set up colors, titles,
legends, etc.
To use the chart tool create a forms project in C#. You will find the chart tool in the toolbox
under the Data heading. Drag the chart tool to your form and size it to the proper size for your
plot. Once the chart tool is in place go the Properties menu and look for Titles. To the right of
the Titles item you will see a box labeled Collection … Click on the box with the three dots and
remove any existing titles from the collection. Do the same for Series, Legends, and Chart
areas. Give your chart a name. In the following example the chart is named chtSin.
You will need to add the following using statement to your code at the top:
using System.Windows.Forms.DataVisualization.Charting;
The example code on the following page shows how to use the chart tool to do a line plot of a
sine and cosine on the same graph in two different colors. Once you have created a line chart
type you need only add the x and y value in pairs to the series using the Points.AddXY() function
like this:
sinSeries.Points.AddXY(t, y);
This particular example plots a sine and cosine wave from 0 to 4π.
private void btnPlot_Click(object sender, EventArgs e)
{double t, y, tIncr;
chtSin.ChartAreas.Add(“Default”);
// Add a series with some data points.
Series sinSeries = new Series();
sinSeries.ChartType = SeriesChartType.Line;
tIncr = 4*Math.PI/500;
for (t=0;t