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;

namespace ConsoleApplication31
{
class Program
{
static void Main(string[] args)
{
string secim3 = "",secim4="";
double bakiye = 0;
Akaryakit dizel = new Akaryakit();
Akaryakit benzin = new Akaryakit();
Akaryakit lpg = new Akaryakit();
lpg.BirimFiyat = 3.52;
lpg.YakitAdi = "LPG";
lpg.DepoMax = 1000;
lpg.DepoKalan = 700;

benzin.BirimFiyat = 5.87;
benzin.YakitAdi = "BENZİN";
benzin.DepoMax = 1000;
benzin.DepoKalan = 600;

dizel.BirimFiyat = 5.67;
dizel.YakitAdi = "DİZEL";
dizel.DepoMax = 1000;
dizel.DepoKalan = 100;




string secim = "";
do
{
Console.WriteLine("[1]Birim Fiyat Göster");
Console.WriteLine("[2]Birim Fiyat Güncelle");
Console.WriteLine("[3]Satış Yap");
Console.WriteLine("[4]Depo Bilgisi");
Console.WriteLine("[5]Kasa Bilgisi");
Console.WriteLine("[9]Çıkış");
secim = Console.ReadLine();

if (secim=="1")
{
Console.WriteLine("{0} Lt fiyatı: {1}",dizel.YakitAdi, dizel.BirimFiyat);
Console.WriteLine("{0} Lt fiyatı: {1}", benzin.YakitAdi, benzin.BirimFiyat);
Console.WriteLine("{0} Lt fiyatı: {1}", lpg.YakitAdi, lpg.BirimFiyat);
Console.ReadLine();
Console.Clear();
}

if (secim=="2")
{
string secim2 = "";
do
{
Console.WriteLine("[1] Dizel Birim Fiyatını Güncelle");
Console.WriteLine("[2] Benzin Birim Fiyatını Güncelle");
Console.WriteLine("[3] LPG Birim Fiyatını Güncelle");
Console.WriteLine("[9] Üst Menü");
secim2 = Console.ReadLine();

if (secim2=="1")
{
dizel.BirimFiyatGuncelle();
}
if (secim2=="2")
{
benzin.BirimFiyatGuncelle();
}
if (secim2=="3")
{
lpg.BirimFiyatGuncelle();
}
if (secim2!="1" && secim2!="2" && secim2!="3" && secim2!="9")
{
Console.WriteLine("Hatalı Giriş yaptınız...!!!!");
}


} while (secim2!="9");

}
if(secim=="3")
{
// [1] Dizel Satışı Yap
// [2] Benzin Satışı Yap
// [3] LPG Satış Yap
// [9] Üst Menü
do
{
if (secim3=="1")
{
bakiye += dizel.SatisYap();
}
if (secim3 == "2")
{
bakiye += benzin.SatisYap();
}
if (secim3 == "3")
{
bakiye += lpg.SatisYap();
}
if (secim3 != "1"&& secim3 != "2" && secim3 != "3" && secim3 != "9" )
{
Console.WriteLine("Hatalı Seçim");
}

} while (secim3!="9");
}
if (secim=="4")

{
do
{

Console.WriteLine("[1] Depo Durumlarını Göster");
Console.WriteLine("[2] Depoya Yakıt Ekle");
Console.WriteLine("[9] üst menü");
secim4 = Console.ReadLine();
if (secim4=="1")
{
Console.WriteLine("{0} Depo Durumu {1}",dizel.YakitAdi,dizel.DepoKalan);
Console.WriteLine("{0} Depo Durumu {1}", benzin.YakitAdi, benzin.DepoKalan);
Console.WriteLine("{0} Depo Durumu {1}", lpg.YakitAdi, lpg.DepoKalan);
}

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

//////////////////////////////////////////////////////////////////////
////////////////////////////////BURADAYIZ/////////////////////////////
//////////////////////////////////////////////////////////////////////


if (secim != "1" && secim != "2" && secim != "3" && secim != "4" && secim != "5" && secim != "9")
{
Console.WriteLine("Hatalı Giriş yaptınız...!!!!");
}
} while (secim!="9");

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