NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


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


namespace ConsoleApplication35
{
class Program
{
static void Main(string[] args)

{

// List<ogrenci> siniflistesi = new List<ogrenci>();


Ogrenci ogr1 = new Ogrenci();
Ogrenci ogr2 = new Ogrenci();
Ogrenci ogr3 = new Ogrenci();
List<Ogrenci> siniflistesi = new List<Ogrenci>();

ogr1.ad = "ali";
ogr1.soyad = "bakar";
ogr1.sınıf = 301;
ogr1.no = 1;
ogr1.cinsiyet = 'e';

ogr2.ad = "mehmet";
ogr2.soyad = "kara";
ogr2.sınıf = 301;
ogr2.no = 1;
ogr2.cinsiyet = 'e';

ogr3.ad = "selen";
ogr3.soyad = "çiçek";
ogr3.sınıf = 301;
ogr3.no = 1;
ogr3.cinsiyet = 'k';



string secim = "", secim2 = "";




do
{
Console.WriteLine("[1] Sınıf listesini görüntüle");
Console.WriteLine("[2] Öğrenci işlemleri ");
Console.WriteLine("[9] Çıkış");
Console.WriteLine("-----------------------------");
secim = Console.ReadLine();




if (secim == "1")
{
Console.WriteLine("[AD]t[SOYAD]t[SINIF]t[NO]t[CNSYT]t");
Console.WriteLine("{0}t{1}t{2}t{3}t{4}");

Console.WriteLine("-----------------------------");

foreach (var item in siniflistesi )
{

Console.WriteLine(item.ad + "t" + item.soyad + "t" + item.sınıf + "t" + item.no + "t" + item.cinsiyet );

}
}
else 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")
{
Console.WriteLine("eklenecek öğrenci adı giriniz:");
string ad = Console.ReadLine();
Console.WriteLine("eklenecek öğrenci soyadı giriniz:");
string soyad = Console.ReadLine();
Console.WriteLine("eklenecek öğrenci sınıf giriniz:");
int sınıf = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("eklenecek öğrenci no giriniz:");
int no = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("eklenecek öğrenci cinsiyet giriniz:");
char cinsiyet = Convert.ToChar(Console.ReadLine());
}
} while (secim2 !="9");

if (secim2 == "2")
{
Console.WriteLine("silinecek öğrenci ıd giriniz:");
}


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

Console.ReadLine();

}
}
}


     
 
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.