Home » » VB.Net İstediğin Dersi seçerek Sınav notunu hesaplayan Program

VB.Net İstediğin Dersi seçerek Sınav notunu hesaplayan Program

İstediğiniz bir dersi seçerek 2 yazılı ve 1 sözlü notunun ortalamalarını hesaplayıp sonucu msgboxda gösteren programı yapınız.
5
OLUŞTURULMASI : Bu programda 5 label, 1 combobox, 4 textbox ve 1 tanede button kullanacağız. Şekildeki gibi yerleşim yaptıktan sonra comboboxa dersleri yazıp notu msgboxda göstermek için buttona şu kodlar yazılmalıdır;
TextBox4.Text = Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text)
TextBox4.Text = Val(TextBox4.Text) / 3
If (TextBox4.Text > 0 And TextBox4.Text < 45) Then MsgBox("1")
If (TextBox4.Text > 44 And TextBox4.Text < 55) Then MsgBox("2")
If (TextBox4.Text > 54 And TextBox4.Text < 70) Then MsgBox("3")
If (TextBox4.Text > 69 And TextBox4.Text < 85) Then MsgBox("4")
If (TextBox4.Text > 84 And TextBox4.Text < 101) Then MsgBox("5")
If (TextBox4.Text > 100) Then MsgBox("hata")
If (TextBox4.Text < 0) Then MsgBox("hata") 
 
Support : Vaganzi
Copyright © 2013. Visual Studio Kod Bankası - All Rights Reserved
Powered By Vaganzi