Notes
Notes - notes.io |
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _odev1
{
class Studemts
{
public class Studemt1
{
string adSoyad="Oğuzhan", numara, sinif;
string cinsiyet;
public string AdSoyad
{
get
{
return adSoyad;
}
set
{
adSoyad = value;
}
}
public string Cinsiyet
{
get
{
if (cinsiyet=="e")
{
cinsiyet = "erkek";
}
else if (cinsiyet=="k")
{
cinsiyet = "kadın";
}
return cinsiyet;
}
set
{
cinsiyet = value;
}
}
public string Numara
{
get
{
return numara;
}
set
{
numara = value;
}
}
public string Sinif
{
get
{
return sinif;
}
set
{
sinif = value;
}
}
public void bilgigir()
{
string adsyd, snf, nmr, csyt="~ü";
Console.Write("Ad soyad giriniz = ");
adsyd = Console.ReadLine();
Console.Write("Numaranızı giriniz = ");
nmr = Console.ReadLine();
Console.Write("Sınıfınızı giriniz = ");
snf = Console.ReadLine();
while (csyt!="e" && csyt != "k")
{
if (csyt== "~ü")
{
Console.Write("Cinsiyetinizi giriniz [e] [k] = ");
csyt = Console.ReadLine();
}
else
{
Console.WriteLine("Hatalı seçim");
Console.Write("Cinsiyetinizi giriniz [e] [k] = ");
csyt = Console.ReadLine();
}
}
AdSoyad = adsyd;
Numara = nmr;
Sinif = snf;
Cinsiyet = csyt;
}
public void bilgilistele()
{
Console.WriteLine("Adı Soyadı = "+AdSoyad);
Console.WriteLine("Numarası = "+Numara);
Console.WriteLine("Sınıfı = "+Sinif);
Console.WriteLine("Cinsiyeti = "+Cinsiyet);
}
}
public class Studemt2
{
string adSoyad = "Yasin", numara, sinif;
string cinsiyet;
public string AdSoyad
{
get
{
return adSoyad;
}
set
{
adSoyad = value;
}
}
public string Cinsiyet
{
get
{
if (cinsiyet == "e")
{
cinsiyet = "erkek";
}
else if (cinsiyet == "k")
{
cinsiyet = "kadın";
}
return cinsiyet;
}
set
{
cinsiyet = value;
}
}
public string Numara
{
get
{
return numara;
}
set
{
numara = value;
}
}
public string Sinif
{
get
{
return sinif;
}
set
{
sinif = value;
}
}
public void bilgigir()
{
string adsyd, snf, nmr, csyt = "~ü";
Console.Write("Ad soyad giriniz = ");
adsyd = Console.ReadLine();
Console.Write("Numaranızı giriniz = ");
nmr = Console.ReadLine();
Console.Write("Sınıfınızı giriniz = ");
snf = Console.ReadLine();
while (csyt != "e" && csyt != "k")
{
if (csyt == "~ü")
{
Console.Write("Cinsiyetinizi giriniz [e] [k] = ");
csyt = Console.ReadLine();
}
else
{
Console.WriteLine("Hatalı seçim");
Console.Write("Cinsiyetinizi giriniz [e] [k] = ");
csyt = Console.ReadLine();
}
}
AdSoyad = adsyd;
Numara = nmr;
Sinif = snf;
Cinsiyet = csyt;
}
public void bilgilistele()
{
Console.WriteLine("Adı Soyadı = " + AdSoyad);
Console.WriteLine("Numarası = " + Numara);
Console.WriteLine("Sınıfı = " + Sinif);
Console.WriteLine("Cinsiyeti = " + Cinsiyet);
}
}
public class Studemt3
{
string adSoyad = "Fatih", numara, sinif;
string cinsiyet;
public string AdSoyad
{
get
{
return adSoyad;
}
set
{
adSoyad = value;
}
}
public string Cinsiyet
{
get
{
if (cinsiyet == "e")
{
cinsiyet = "erkek";
}
else if (cinsiyet == "k")
{
cinsiyet = "kadın";
}
return cinsiyet;
}
set
{
cinsiyet = value;
}
}
public string Numara
{
get
{
return numara;
}
set
{
numara = value;
}
}
public string Sinif
{
get
{
return sinif;
}
set
{
sinif = value;
}
}
public void bilgigir()
{
string adsyd, snf, nmr, csyt = "~ü";
Console.Write("Ad soyad giriniz = ");
adsyd = Console.ReadLine();
Console.Write("Numaranızı giriniz = ");
nmr = Console.ReadLine();
Console.Write("Sınıfınızı giriniz = ");
snf = Console.ReadLine();
while (csyt != "e" && csyt != "k")
{
if (csyt == "~ü")
{
Console.Write("Cinsiyetinizi giriniz [e] [k] = ");
csyt = Console.ReadLine();
}
else
{
Console.WriteLine("Hatalı seçim");
Console.Write("Cinsiyetinizi giriniz [e] [k] = ");
csyt = Console.ReadLine();
}
}
AdSoyad = adsyd;
Numara = nmr;
Sinif = snf;
Cinsiyet = csyt;
}
public void bilgilistele()
{
Console.WriteLine("Adı Soyadı = " + AdSoyad);
Console.WriteLine("Numarası = " + Numara);
Console.WriteLine("Sınıfı = " + Sinif);
Console.WriteLine("Cinsiyeti = " + Cinsiyet);
}
}
}
class Program
{
static void Main(string[] args)
{
string secim = "0";
Studemts.Studemt1 std1 = new Studemts.Studemt1();
Studemts.Studemt2 std2 = new Studemts.Studemt2();
Studemts.Studemt3 std3 = new Studemts.Studemt3();
while (secim != "3")
{
string secim2 = "0";
Console.WriteLine("[1] - Öğrenci bilgisi gir");
Console.WriteLine("[2] - Öğrenci bilgisi listele");
Console.WriteLine("[3] - Çıkış ");
Console.WriteLine("[4] - Ekranı temizle ");
secim = Console.ReadLine();
switch (secim)
{
default:
Console.WriteLine("Hatalı seçim");
break;
case "1":
while (secim2 != "4")
{
Console.WriteLine("[1] {0} bilgilerini gir",std1.AdSoyad);
Console.WriteLine("[2] {0} öğrenci bilgilerini gir",std2.AdSoyad);
Console.WriteLine("[3] {0} öğrenci bilgilerini gir",std3.AdSoyad);
Console.WriteLine("[4] Üst menüye dön");
secim2 = Console.ReadLine();
switch (secim2)
{
default:
Console.WriteLine("Hatalı seçim");
break;
case "1":std1.bilgigir(); break;
case "2":std2.bilgigir(); break;
case "3":std3.bilgigir(); break;
case "4": break;
}
}
break;
case "2":
while (secim2 !="4")
{
Console.WriteLine("[1] {0} öğrenci bilgilerini listele",std1.AdSoyad);
Console.WriteLine("[2] {0} öğrenci bilgilerini listele", std2.AdSoyad);
Console.WriteLine("[3] {0} öğrenci bilgilerini listele", std3.AdSoyad);
Console.WriteLine("[4] Üst menüye dön");
secim2 = Console.ReadLine();
switch (secim2)
{
default:
Console.WriteLine("Hatalı seçim");
break;
case "1":std1.bilgilistele(); break;
case "2": std2.bilgilistele(); break;
case "3": std3.bilgilistele(); break;
case "4": break;
}
}
break;
case "3": Console.WriteLine("Çıkış yapılıyor.."); break;
case "4":Console.Clear();break;
}
}
Console.ReadLine();
}
}
}
![]() |
Notes is a web-based application for online 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 14 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
