NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

/*
* Ana menü
[1] Sınıf listesini görüntüle
[2] Öğrenci işlemleri
[9] Çıkış
-----------------------------
Seçiminiz [1][2][9] :

1-2-9 değerleri haricinde bir değer girilirse hata verecek
eğer9 girilirse program sonlanacak
eğer 1 girilirse

liste boşsa liste boş yazacak
doluysa sınıf listesi görüntülenecek

[ID] [AD] [SOYAD] [SINIF] [NO] [CNSYT]
-----------------------------------------------
0 ALİ YILMAZ 4 23 E
1 VELİ KOÇ 3 54 E
2 AYSE KORKMAZ 2 11 K
3 FATMA KAYA 4 22 K şeklinde listeleyecek

eğer 2 girilirse Alt menü gelecek

[1] Öğrenci ekle
[2] Öğrenci sil
[9] Üst Menüye git
------------------------------
Seçiminiz [1][2][9] :

1-2-9 değerleri haricinde bir değer girilirse hata verecek
1 seçilirse

-ID otomatik atanacak (her eklemede birer birer artarak)
-ID, AD, SOYAD, SINIF, NO, CINSIYET public olmayacak. ID hariç hepsi klavyeden girilecek
-CNSYT ne girilirse girilsin girilen ifadenin ilk harfini büyük şekilde alıp saklayacak

2 seçilirse

-Öğrenci listesi görüntülenecek ve altında "Silinecek öğrencinin ID'sini girin:" diyecek. Girilen ID numaralı öğrenci listeden kaldırılacak.

9 seçilirse bir üst menüye gidecek.

Not: Öğrenciler NESNE olacak!!!
OgrenciListele, OgrenciEkle, OgrenciSil Metotları olacak.


*/
class Program
{
static void Main(string[] args)
{
string secim = "", secim2 = "" ;
OGRENCİ ogr = new OGRENCİ();
List<OGRENCİ> sinifListesi = new List<OGRENCİ>();

do
{

Console.WriteLine("[1] Sınıf Listesini Görüntüle ");
Console.WriteLine("[2] Öğrenci işlemleri ");
Console.WriteLine("[9] Çıkış ");
Console.WriteLine("--------");
Console.WriteLine("sçiminiz [1] [2] [3]");
secim = Console.ReadLine();


if (secim == "1")
{
Console.WriteLine("[ID]t[AD]t[SOYAD]t[SINIF]t[NO]t[CNSYT]");
Console.WriteLine("--------------------------------------------");
ogr.OgrenciListele();


;


Console.ReadLine();


}
if (secim == "2")
{
do
{

Console.WriteLine("[1] Öğrenci ekle ");
Console.WriteLine("[2] Öğrenci sil ");
Console.WriteLine("[9] üst menüye git ");
secim2 = Console.ReadLine();

if (secim2 == "1")
{

ogr.OgrenciEkle();



}
if (secim2 == "2")
{
ogr.OgrenciSil();
}
if (secim2 != "1" && secim2 != "2" && secim2 != "9")
{
Console.WriteLine("Hatalı seçim yaptınız : ");
}
}
while (secim2 != "9");


}
if(secim!="1" && secim!="2" && secim!="9")
{
Console.WriteLine("hatalı seçim yaptınız :");

}
}
while (secim != "9");
}
}
}

CLASS


class OGRENCİ
{
public int ID { get; set; }
public string Ad { get; set; }
public string Soyad { get; set; }
public string Numara { get; set; }
public string Sinif { get; set; }
public char Cinsiyet { get; set; }

public void OgrenciEkle()
{
Console.WriteLine("Öğrencinin Adı :");
Ad = Console.ReadLine();
Console.WriteLine("Öğrencinin Soyadı :");
Soyad = Console.ReadLine();
Console.WriteLine("Öğrencinin Numara bilgisini Gir :");
Numara = Console.ReadLine();
Console.WriteLine("Öğrencinin Sınıf bilgisini Gir :");
Sinif = Console.ReadLine();
Console.WriteLine("Öğrencinin Cinsiyet bilgisini Gir :");
Cinsiyet = Console.ReadLine().ToUpper()[0];
}
public void OgrenciListele()
{
Console.WriteLine("{0}t{1}t{2}t{3}t{4}", Ad, Soyad, Sinif, Numara, Cinsiyet);


}

public void OgrenciSil()
{

}
}
}
     
 
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.