Advertisement
GreezOver

Untitled

Sep 16th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.20 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace pivas
  8. {
  9.     class Brewery {
  10.        
  11.  
  12.         public void info() {
  13.            
  14.            
  15.         }
  16.         public Brewery (){
  17.            
  18.         }
  19.     }
  20.     class Beer:Brewery {
  21.         string color;
  22.         string filter;
  23.         string nameofbeer;
  24.         string bitternes;
  25.         string alcohol;
  26.         string timetodo;
  27.         string timetodrink;
  28.         struct ingredients {
  29.             string yeats;//drojji
  30.             string hop;//hmel'
  31.             string malt;//solod
  32.             string water;
  33.             string sugar;
  34.         }
  35.     }
  36.  
  37.     class Person {
  38.         struct name
  39.         {
  40.             string fname;//im`a
  41.             string fathername;//ot4estvo
  42.             string sname;//familia
  43.         }
  44.         struct register {
  45.             string email;
  46.             string nickname;
  47.             string password1;
  48.             string password2;
  49.            
  50.         }
  51.         public Person() {
  52.  
  53.         }
  54.     }
  55.  
  56.     class Buyer:Person {
  57.         public Buyer() {
  58.  
  59.         }
  60.     }
  61.     class Worker
  62.     {
  63.         public Worker() {
  64.  
  65.         }
  66.     }
  67.     class Seller:Worker {
  68.         public Seller() {
  69.  
  70.         }    
  71.     }
  72.     class Administrator : Worker
  73.     {
  74.         public Administrator() {
  75.  
  76.         }
  77.     }
  78.  
  79.  
  80.     class Program
  81.  
  82.     {
  83.         static void Main(string[] args)
  84.         {
  85.             int num;
  86.             Console.WriteLine("Who are you?\nI'm:\n1. seller\n2. buyer\n3. administrator");
  87.             num = Convert.ToInt32(Console.ReadLine());
  88.             switch (num) {
  89.                 case 1:
  90.                     Console.WriteLine("Please sign in");
  91.                     Console.ReadLine();
  92.                     break;
  93.                 case 2:
  94.                     Console.WriteLine("Please sign in or sign up");
  95.                     break;
  96.                 case 3:
  97.                     Console.WriteLine("Please sign in");
  98.                     break;
  99.                 default:
  100.                     Console.WriteLine("Incorrect symbol");
  101.                     break;
  102.             }
  103.  
  104.         }
  105.     }
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement