Ok I need to be pointed into the right area where I'm going
I seem to be lost and more I read it confuses me more.
My assignment is:
Create a C# project to process 10 students result. Use arrays to keep all the students details in terms of Student Id, full name, assignment marks, exam marks and total marks.
Create a menu on the form with following items:
1. Enter student result
2. Calculate Total results of students
3. Display the results and Grade
4. Display the highest and lowest mark
5. Search for the result
6. Exit
Write Method to implement every item in the above menu with the meeting of following requirements:
Enter the results of every student for one assignment and one exam with the full mark 100 marks of each result, while the weight for both are 50%.
Calculate the total result for every student (Total = A * 50% + Exam *50%);
Display Student Id, all the results and grade for every student. The grade is based on the following rules:
If total marks < 80 grade is F
If total marks between 80 to 94 grade is P
If total marks >=90 grade is M
Also, the number of students in each grade will be counted;
Display student Id, name and the result of the student who has the highest total marks and one who has lowest total marks;
Display all the results of one student after the search by Student Id.
I dont want someone to do this for me but I want help in the right direction.
the code I have is
static void Main()
{
Application.Run(new Form1());
}
int [] StudentID = new int[10];
String[] Name = new String [10];
int [] Result1 = new int [10];
int [] Result2 = new int [10];
void EnterStudent()
{
StudentID[0] = int.Parse(textBox1.Text);
Name[0] = (textBox2.Text);
Result1[0] = int.Parse(textBox3.Text);
Result2[0] = int.Parse(textBox4.Text);
{
for ( int index = 0; index < 10; index++ );
listBox1.Items.Add //I dont know how to get it to show the data }
}
private void menuItem3_Click(object sender, System.EventArgs e)
{
EnterStudent();
}
I want to have a menu to start it then you enter the student ID, name and results. Click on a button to save and write the next results for the next student but I'm confused about what to write in the button part. Also is what I've done right?