I am having troubles figuring out how to extract a minimum and maximum number from an Array. This program allows a user to input up to 12 assignment grades and then my array gathers those grades and displays them in the output box. I just also am required to display the minumum and maximum grades from the array as well. Thanks for the help!
private void display_output()
{
Txt_Output.Text = "";
course = Txt_Course.Text;
name = Txt_Name.Text;
Txt_Output.Text = "Course: " + course + "\r\n" + "Student: " + name + "\r\n\r\n" + "Assignments:" + "\r\n";
for (int posn = 0; posn < assigns.Length; posn++)
{
Txt_Output.Text += assigns[posn] + "\r\n";
}
return;
}