C# Windows Form’da Öğrenci bilgileri ve not bilgileri girilen öğrencinin notunun ortalamasını ve eğer ortalaması 50’den büyükse durumuna geçti aksi takdirde kaldı cevabını veren ve bu öğrencileri bir listede gösteren basit bir form uygulaması
Kullanılan Araçlar:
- 9 adet Label (ad,soyad,okulno)
- 8 adet textBox
- 1 adet comboBox (dersadı)
- 1 adet buton
- 1 adet dataGridView
- 3 adet groupBox

private void eklebtn_Click(object sender, EventArgs e)
{
string ad = textBox1.Text;
string soyad = textBox2.Text;
string okulno = textBox3.Text;
string sinif = textBox4.Text;
string ders_adi = comboBox1.Text;
int not1 = Convert.ToInt32(textBox5.Text);
int not2 = Convert.ToInt32(textBox6.Text);
int not3 = Convert.ToInt32(textBox7.Text);
int not4 = Convert.ToInt32(textBox8.Text);
double ortalama = (not1 + not2 + not3 + not4) / 4;
string durum;
if (ortalama > 50)
{
durum = "GEÇTİ";
}
else
{
durum = "KALDI";
}
dataGridView1.Rows.Add(ad, soyad, okulno, sinif, ders_adi, ortalama, durum);
}