• Ana Sayfa
  • Portal
  • Üye Listesi
  • Yönetim Kadrosu
  • Forum İstatistikleri

  • Konu Bilgileri
    Konu Başlığı: C Sharp – Metodlar – Metod İle Restorant Programı | Görüntülenme Sayısı: 1132 | Cevap Sayısı: 1 | Konuyu Açan Kişi: Hatake

    Şu anda bu konuyu okuyanlar: 2 Ziyaretçi
    Konuyu Oyla:
    • Toplam: 0 Oy - Ortalama: 0
    • 1
    • 2
    • 3
    • 4
    • 5
    C Sharp – Metodlar – Metod İle Restorant Programı
    #1
    Metod kullandığımız bu örnekte; kullanıcya menü sunuyor ve kullanıcının seçimine göre metodumuzu karşısına çıkartıyoruz.Metodlarda ise menüdeki yiyecek,içecek,tatlılar ve hesap gibi işlemleri yaptırıyoruz.

    MetodOdevRestorant.jpg

    PHP Kod:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
     
    namespace 
    MetodOdevRestorant
    {
      
        class 
    Program
        
    {
           static 
    int hesap 0;
            
            static 
    void yiyecekler() {
                
    Console.WriteLine("İstediğiniz yemeğin numarasını giriniz:");
                
    Console.WriteLine("1 - Et yemeği");
                
    Console.WriteLine("2 - Mantı");
                
    Console.WriteLine("3 - Tavuk");
               
                
    int secim Convert.ToInt32(Console.ReadLine());
                if (
    secim == 1){
                    
    hesap += 20;
                    
    Console.WriteLine("Et yemeğiniz hazırlanıyor.");
                }
                else if (
    secim == 2){
                    
    hesap += 15;
                    
    Console.WriteLine("Mantınız hazırlanıyor.");
                }
                else if (
    secim == 3){
                    
    hesap += 10;
                    
    Console.WriteLine("Tavuğunuz hazırlanıyor.");
                }
          
                else
                    
    Console.WriteLine("Geçersiz İşlem");
                
    Console.ReadLine();
                }
     
            static 
    void icecekler()
            { 
                         
    Console.WriteLine("İstediğiniz içeceğin numarasını giriniz:");
                
    Console.WriteLine("1 - Ayran");
                
    Console.WriteLine("2 - Kola");
                
    Console.WriteLine("3 - Limonata");
            
                
    int secim Convert.ToInt32(Console.ReadLine());
                if (
    secim == 1){
                    
    hesap += 3;
                    
    Console.WriteLine("İçeceğiniz Ayran");
                }
                else if (
    secim == 2){
                    
    hesap += 4;
                    
    Console.WriteLine("İçeceğiniz Kola");
                }
                else if (
    secim == 3){
                    
    hesap += 5;
                    
    Console.WriteLine("İçeceğiniz Limonata");
                }
                else {
                    
    Console.WriteLine("Geçersiz İşlem");
                
    Console.ReadLine();
                }
     
            }
     
            static 
    void tatlilar()
            {
        
    Console.WriteLine("İstediğiniz tatlının numarasını giriniz:");
                
    Console.WriteLine("1 - Sütlaç");
                
    Console.WriteLine("2 - Kazandibi");
                
    Console.WriteLine("3 - Tavuk Göğsü");
            
                
    int secim Convert.ToInt32(Console.ReadLine());
                if (
    secim == 1){
                    
    hesap +=6;
                    
    Console.WriteLine("Tatlınız Sütlaç");
                }
                else if (
    secim == 2){
                    
    hesap +=6;
                    
    Console.WriteLine("Tatlınız Kazandibi");
                }
                else if (
    secim == 3){
                    
    hesap +=6;
                    
    Console.WriteLine("Tatlınız Tavuk Göğsü");
                }
                else {
                    
    Console.WriteLine("Geçersiz İşlem");
                
    Console.ReadLine();
                }
            }
     
            static 
    void hesapode()
            {
                
    Console.WriteLine("Ödemeniz gereken ücret {0}TL",hesap);
                
    Console.ReadLine();
            }
            
         static 
    void Main(string[] args)
            {
                
    int secim;
                do
                {
                    
                
    Console.WriteLine("**********Ana Menü**********");
                
    Console.WriteLine("1 - Yiyecekler");
                
    Console.WriteLine("2 - İçecekler");
                
    Console.WriteLine("3 - Tatlılar");
                
    Console.WriteLine("4 - Hesap Öde");
                
    Console.WriteLine("İşlem yapmak için numara giriniz:");
                
    secim Convert.ToInt32(Console.ReadLine());
                if (
    secim == 1)
                    
    yiyecekler();
                else if (
    secim == 2)
                    
    icecekler();
                else if (
    secim == 3)
                   
    tatlilar();
                else if (
    secim ==4)
                    
    hesapode();
                else
                    break;
     
                } while (
    secim !=4);
                 
     
            }
        }

    #2
    Teşekkürler.


    Hızlı Menü:


    [-]
    Anahtar Kelimeler
    Anahtar Kelimeler:
    - - - - - - - - - - - - - - - - - - - - - - - - -
    Konu Ismi: C Sharp – Metodlar – Metod İle Restorant Programı - Yazar: Hatake
    C Sharp – Metodlar – Metod İle Restorant Programı Full Indir C Sharp – Metodlar – Metod İle Restorant Programı Full Dinle C Sharp – Metodlar – Metod İle Restorant Programı Full Izle C Sharp – Metodlar – Metod İle Restorant Programı Download C Sharp – Metodlar – Metod İle Restorant Programı Yükle C Sharp – Metodlar – Metod İle Restorant Programı Free Download C Sharp – Metodlar – Metod İle Restorant Programı ne demek C Sharp – Metodlar – Metod İle Restorant Programı nasil oluyor C Sharp – Metodlar – Metod İle Restorant Programı ücretsiz indir C Sharp – Metodlar – Metod İle Restorant Programı fragmani C Sharp – Metodlar – Metod İle Restorant Programı Film C Sharp – Metodlar – Metod İle Restorant Programı Müzik C Sharp – Metodlar – Metod İle Restorant Programı mp3 C Sharp – Metodlar – Metod İle Restorant Programı Videolari C Sharp – Metodlar – Metod İle Restorant Programı Resimleri C Sharp – Metodlar – Metod İle Restorant Programı Dizileri C Sharp – Metodlar – Metod İle Restorant Programı Sorun C Sharp – Metodlar – Metod İle Restorant Programı hatasi C Sharp – Metodlar – Metod İle Restorant Programı Cözüm nedir C Sharp – Metodlar – Metod İle Restorant Programı ne demek C Sharp – Metodlar – Metod İle Restorant Programı nasil C Sharp – Metodlar – Metod İle Restorant Programı Programm C Sharp – Metodlar – Metod İle Restorant Programı Kurulum C Sharp – Metodlar – Metod İle Restorant Programı Yardim
    C Sharp – Metodlar – Metod İle Restorant Programı Kim C Sharp – Metodlar – Metod İle Restorant Programı kodları C Sharp – Metodlar – Metod İle Restorant Programı yapımı

    Forum Anahtar Kelimeler.

    Türkçe Çeviri: MyBB.Com.Tr
    Forum Yazılımı: MyBB, © 2002-2014 MyBB Group.
    Bu temanın yapımcısı #Pøwér™'dir. Hiç bir materyal çalınamaz.
    © Soft Flat Theme v2 | 2015. Tüm hakları saklıdır.

    Minecraft server kurulum , Minecraft survival , Wolfteam , Cold Hack , Oyun Hileleri , En güzel oyunlar , En komik fıkralar, En güzel fıkralar, oyun forumu , geyik , program indirin , angry birds indir , php kodları, asp kodları , html kodları, html duyuru , mybb temaları , 10tr.net temaları , alexa güncellenmiyor , css kodları , kodlama dersleri , online oyunlar , Lol , league of legends , grafik tasarım , photoshop tasarımları , sanalika , pointblank , pb, metin 2 , metin 3 , metin 2 bot , bombom , facebook like, tfm , transformici , transformice server kurulum , transformice pvp serverlar, grafiker , admin , ar-ge , moderatör



    10tl.net Destek Forumu -