C# Harf Notu Hesaplama Programı - C # Note Calculation
C# Harf Notu Hesaplama Programı - C # Note Calculation
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HarfNotuBul
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = "NOT: ";
button1.Text = "Harf Notu Hesapla";
}
private void button1_Click(object sender, EventArgs e)
{
double not = Convert.ToDouble(textBox1.Text);
if (not < 0 || not > 100)
MessageBox.Show("Geçersiz not!");
else if (not > 80)
MessageBox.Show("AA");
else if (not > 75)
MessageBox.Show("BA");
else if (not > 65)
MessageBox.Show("BB");
else if (not > 55)
MessageBox.Show("CB");
else if (not >= 44.5)
MessageBox.Show("CC");
else
MessageBox.Show("FF");
}
}
}
C# Harf Notu Hesaplama Programı - C # Note Calculation
Reviewed by MARS
on
Eylül 11, 2017
Rating:
Hiç yorum yok: