Data file can be found in the folder
data
.
-
Replace the string value of
FullPathToDataFile
inProgram.cs
with the actual path to data file. -
Write a static method
FindMean
to find the average from the provided array of int. The function signature should look like the followingstatic int FindMean(int[] values)
-
Use the method
ReadValuesFromDataFile
of theValuesReader
to read the value from the file specified inFullPathToDataFile
. -
Implement the loop to plot values as shown in the sample below.
- Use
*
to plot the actual value - Use
-
to plot the mean value return from the methodFindMean()
.
- Use
PS R:\quiz-plot\DotPlot> dotnet run
DOT Plot
10 |
9 | *****
8 | * *
7 | * * ****
6 | * * * *
5 |
4 |------------------------*---------------
3 | * * **** **
2 |*** * * ** *
1 | * *
0 | ****
==============================================