NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

static void Main(string[] args)
{
Baslangic:
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write("Kaç öğrenci istiyorsunuz ? ");
int ogrenciSayisi = 0;
if (int.TryParse(Console.ReadLine(), out ogrenciSayisi))
{
Console.WriteLine("Kişi sayınız sistemi işlenmiştir !");
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Integer değer girmeniz gerekmektedir.");
Console.ResetColor();
goto Baslangic;
}
Console.ResetColor();
string ogrenciAdi = "", arananOgrenci = "";
int arananOgrenciIndex;
string[] ogrenciler = new string[ogrenciSayisi];
double[,] MatematikNotlari = new double[ogrenciSayisi, 2];
double[,] KimyaNotlari = new double[ogrenciSayisi, 2];
double[] MatematikOrtalamasi = new double[ogrenciSayisi];
double[] KimyaOrtalamasi = new double[ogrenciSayisi];

for (int i = 0; i < ogrenciSayisi; i++)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.Write("{0}. öğrencinin adını giriniz = ", i + 1);
ogrenciAdi = Console.ReadLine().ToString().ToUpper();
ogrenciler[i] = ogrenciAdi;

for (int m1 = 0; m1 < MatematikNotlari.GetLength(1); m1++)
{
Console.ForegroundColor = ConsoleColor.Blue;
Console.Write("{0} adlı öğrencinin {1}. Matematik notunu giriniz = ", ogrenciler[i], m1 + 1);
MatematikNotlari[i, m1] = Convert.ToDouble(Console.ReadLine());

}
MatematikOrtalamasi[i] = (MatematikNotlari[i, 0] + MatematikNotlari[i, 1]) / 2;

for (int k1 = 0; k1 < KimyaNotlari.GetLength(1); k1++)
{
Console.ForegroundColor = ConsoleColor.Magenta;
Console.Write("{0} adlı öğrencinin {1}. Kimya notunu giriniz = ", ogrenciler[i], k1 + 1);
KimyaNotlari[i, k1] = Convert.ToDouble(Console.ReadLine());
}
KimyaOrtalamasi[i] = (KimyaNotlari[i, 0] + KimyaNotlari[i, 1]) / 2;
Console.Clear();
}
OgrenciAra:
Console.ForegroundColor = ConsoleColor.Blue;
Console.Write("Aramak istediğiniz öğrenci adını giriniz = ");
arananOgrenci = Console.ReadLine().ToString().ToUpper();
Console.ResetColor();

if (ogrenciler.Contains(arananOgrenci))
{
arananOgrenciIndex = Array.IndexOf(ogrenciler, arananOgrenci);
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Öğrenci Adı = {0}nMatematik Ortalaması = {1}nKimya Ortalaması = {2}", ogrenciler[arananOgrenciIndex], MatematikOrtalamasi[arananOgrenciIndex], KimyaOrtalamasi[arananOgrenciIndex]);
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Aradığınız öğrenci bulunamadı !");
}
SecimYap:
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write("Tekrar aramak ister misiniz ? (E / H)");
string ara = Console.ReadLine().ToString().ToUpper();
if (ara == "E")
{
Console.Clear();
goto OgrenciAra;
}
else if (ara == "H")
{
Console.Clear();
}
else
{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Yanlış seçim yaptınız !");
goto SecimYap;
}
Menu:
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write("Genel Ortalama Tablosu (1) - Detaylı Not Tablosu (2) = ");
int Secim = int.Parse(Console.ReadLine());
if (Secim == 1)
{
for (int i = 0; i < ogrenciSayisi; i++)
{
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("Öğrenci Adı = {0}nMatematik Ortalaması = {1}nKimya Ortalaması = {2}", ogrenciler[i], MatematikOrtalamasi[i], KimyaOrtalamasi[i]);
}
}
else if (Secim == 2)
{
for (int i = 0; i < ogrenciSayisi; i++)
{
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("Öğrenci Adı = {0}nMatematik 1. Sınav Notu = {1}nMatematik 2. Sınav Notu = {2}nMatematik Ortalaması = {3}", ogrenciler[i], MatematikNotlari[i, 0], MatematikNotlari[i, 1], MatematikOrtalamasi[i]);
Console.ForegroundColor = ConsoleColor.Magenta;
Console.WriteLine("Öğrenci Adı = {0}nKimya 1. Sınav Notu = {1}nKimya 2. Sınav Notu = {2}nKimya Ortalaması = {3}", ogrenciler[i], KimyaNotlari[i, 0], KimyaNotlari[i, 1], KimyaOrtalamasi[i]);
}
}
else
{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Geçerli bir seçim yapmadınız !");
goto Menu;
}
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write("Menüye dönmek ister misiniz ? (E / H) ");
string menu = Console.ReadLine().ToString().ToUpper();
if (menu == "E")
{
Console.Clear();
goto Menu;
}
else if (menu == "H")
{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("İşlem bitmiştir. Çıkış yapılıyor !");
}
else
{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Yanlış seçim yaptınız !");
goto Menu;
}
Console.ReadKey();
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.