C# Ortalama Hesaplama
C# Ortalama Hesaplama Programı
[csharp]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 ortalama_hesapla
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int not1, not2, not3, ortalama;
not1 = Convert.ToInt32(textBox1.Text);
not2 = Convert.ToInt32(textBox2.Text);
not3 = Convert.ToInt32(textBox3.Text);
ortalama = (not1 + not2 + not3) / 3;
if (ortalama < 50)
{
textBox4.Text = "1";
}
else if (ortalama < 60)
{
textBox4.Text = "2";
}
else if (ortalama < 70)
{
textBox4.Text = "3";
}
else if (ortalama < 85)
{
textBox4.Text = "4";
}
else if (ortalama < 100)
{
textBox4.Text = "5";
}
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("www.technoprogram.com");
}
}
}
[/csharp]
Dosya boyutu : 51 Kb
Virustotal Sonuçları : 0 / 54 Temiz
Rar şifresi : www.technoprogram.com
programlama dersi alıyorum ve hocanın verdiği ödevde dosya yükle ortalama al diye bir buton var nasıl bir kod kullanmalıyım yada nasıl bir yol izlemeliyim yardımcı olurmusunuz
C# dosya işlemleri diye arayabilirsin dosyadaki verileri okutup kullanırsın zor bir işlem değil.