NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

class Program
{

static void Main(string[] args)
{
Urun u = new Urun();
Giyim giyim =(Giyim)u;
Ayakkabi ayakkabi = (Ayakkabi)u;
Elektronik elektronik = (Elektronik)u;
Kozmetik kzmetik = (Kozmetik)u;
Kitap ktp = (Kitap)u;
AnneBebek ab = (AnneBebek)u;
Spor spor = (Spor)u;
Ev ev = (Ev)u;
Saat saat = (Saat)u;

List<Urun> UrunListem = new List<Urun>();
int id = 0;
string secim = "", secim2 = "", Admin = "bbbb", parola = "aaaa",kadi="",sifre="" ;
do
{
Console.WriteLine("[1] Giyim");
Console.WriteLine("[2] Ayakkabı");
Console.WriteLine("[3] Elektronik");
Console.WriteLine("[4] Ev - yaşam");
Console.WriteLine("[5] Anne Bebek");
Console.WriteLine("[6] Kozmetik");
Console.WriteLine("[7] Saat");
Console.WriteLine("[8] Spor");
Console.WriteLine("[9] Kitap");
Console.WriteLine("--------------");
Console.WriteLine("[S] Sepet");
Console.WriteLine("-------------");
Console.WriteLine("[A] Admin");
Console.WriteLine("[X] Çıkış");
Console.Write("SEÇİMİNİZ : ");
secim = Console.ReadLine();
if (secim == "1")
{
giyim.GListe(UrunListem);
}
else if (secim == "2")
{

}
else if (secim == "3")
{

}
else if (secim == "4")
{

}
else if (secim == "5")
{

}
else if (secim == "6")
{

}
else if (secim == "7")
{

}
else if (secim == "8")
{

}
else if (secim == "9")
{

}
else if (secim == "s" || secim == "S")
{
do
{
Console.WriteLine("[1] Ode");
Console.WriteLine("[2] Sepeti boşalt");
Console.WriteLine("[3] Sepetten ürün çıkar");
Console.WriteLine("[4] Geri");
Console.WriteLine("SEÇİMİNİZ : ");
secim2 = Console.ReadLine();
if (secim2 == "1")
{

}
else if (secim2 == "2")
{

}
else if (secim2 == "3")
{

}
else if (secim != "1" && secim != "2" && secim != "3" && secim != "4")
{
Console.WriteLine("HATA");
}

} while (secim != "4");
}
else if (secim=="a"|| secim=="A")
{
do
{
Console.Write("Kullanici Adi Giriniz : ");
kadi = Console.ReadLine();
Console.Write("Parolayi Giriniz : ");
sifre = Console.ReadLine();
if (Admin == kadi && parola == sifre)
{



}
} while (Admin!=kadi && parola!=sifre);
}
else if (secim != "1" && secim != "2" && secim != "3" && secim != "4" && secim != "5" && secim != "6" && secim != "7" && secim != "8" && secim != "9" && secim != "s" && secim != "S"&& secim != "a" && secim != "A")
{
Console.WriteLine("HATA");
}

} while (secim != "X" || secim != "x");
}
}
}
******************************************************************
urunn
class Urun
{
int id;
string urunadi;
double urunfiyati;
string urunmarkasi;
string urunturu;
string kategori;
string barkod;

public int ID
{
get { return ID; }
set { ID = value; }
}
public string Urunadi
{
get { return Urunadi; }
set { Urunadi = value; }
}
public double Urunfiyati
{
get { return Urunfiyati; }
set { Urunfiyati = value; }
}
public string Urunmarkasi
{
get { return Urunmarkasi; }
set { Urunmarkasi = value; }
}
public string Urunturu
{
get { return Urunturu; }
set { Urunturu = value; }
}

public string Kategori
{
get { return kategori; }
set { kategori = value; }
}
public string Barkod
{
get { return Barkod; }
set { Barkod = value; }
}
public virtual double Kdv(double kdv)
{
kdv = kdv * 1.18;
return kdv;
}
}
******************************************************
giyim
class Giyim : Urun
{
public override double Kdv(double kdv)
{
kdv = kdv * 1.08;
return kdv;
}
private char cinsiyet;

public char Cinsiyet
{
get { return Cinsiyet; }
set { Cinsiyet = value; }
}
private string beden;

public string Beden
{
get { return Beden; }
set { Beden = value; }
}

public void GEkle(List<Urun> listem)
{
Giyim g = new Giyim();
Random rnd = new Random();
g.ID = rnd.Next(1, 10);
Console.WriteLine("ID : " + g.ID);
Console.Write("Urun adini giriniz : ");
g.Urunadi = Console.ReadLine();
Console.Write("Urunun fiyatını giriniz : ");
g.Urunfiyati = Convert.ToDouble(Console.ReadLine());
Console.Write("Urunun markasini giriniz :");
g.Urunmarkasi = Console.ReadLine();
Console.Write("Urunun turunu giriniz :");
g.Urunturu = Console.ReadLine();
Console.Write("Urunun ketegorisini giriniz :");
g.Kategori = Console.ReadLine();
Console.Write("Urunun borkod nosunu giriniz :");
g.Barkod = Console.ReadLine();
Console.Write("Urunun cinsiyetini giriniz :");
g.Cinsiyet = Console.ReadLine().ToUpper()[0];
Console.Write("Urunun bedenini giriniz :");
g.Beden = Console.ReadLine();
listem.Add(g);
}
public void GListe(List<Urun> listem)
{
if (listem.Count == 0)
{
Console.WriteLine("Listenizde Veri Bulunmamaktadır");
}

else
{
Console.WriteLine("[ID]t[UAdi]t[Fiyati]t");
foreach (Urun item in listem)
{
Console.WriteLine("{0}t{1}t{2}t", item.ID, item.Urunadi, item.Urunfiyati);
}
}

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