Pc Programlama Programlama Sitesi C++ Builder Java C C++ Php .Net

Anasayfa Programlama .NET Büyük Ünlü Uyumu


Büyük Ünlü Uyumu

AÇIKLAMA

 Verilen bir kelimenin büyük ünlü uyumuna uyup uymadığını kontrol ediniz. Kelimenin büyük harfle veya küçük harfle yazılabileciğini de dikkate alınız. 

Büyük ünlü uyumu: Türkçe’de, bir kelimedeki sesli harflerin hepsi “a,ı,o,u” harflerinden ya da “e,i,ö,ü” harflerinden oluşuyor ise; o kelime büyük ünlü uyumuna uygundur.

Programın Tamamını Aşağıdaki Linkten İndirebilirsiniz

Linki Görebilmeniz İçin Üye Olmanız Gerekmektedir...

Üye Kayıt 

Program Kodu:

 

  1.  
  2.  
  3.  
  4.  
  5. using System;
  6.  
  7. using System.Collections.Generic;
  8.  
  9. using System.ComponentModel;
  10.  
  11. using System.Data;
  12.  
  13. using System.Drawing;
  14.  
  15. using System.Linq;
  16.  
  17. using System.Text;
  18.  
  19. using System.Windows.Forms;
  20.  
  21.  
  22.  
  23. namespace BuyukUnluUyumu
  24.  
  25. {
  26.  
  27.     public partial class Form1 : Form
  28.  
  29.     {
  30.  
  31.        bool CheckCharecter = false;
  32.  
  33.        bool EvenOrNotEven = false;
  34.  
  35.        bool NotCorrect = false;
  36.  
  37.        char[] characters1 = { 'a', 'A', 'ı', 'I', 'o', 'O', 'u', 'U'};
  38.  
  39.        char[] characters2 = { 'e', 'E', 'i', 'İ', 'ö', 'Ö', 'ü', 'Ü'};
  40.  
  41.        char[] characters3 = { 'a', 'A', 'ı', 'I', 'o', 'O', 'u', 'U', 'e', 'E', 'i', 'İ', 'ö', 'Ö', 'ü', 'Ü' };
  42.  
  43.  
  44.  
  45.         public Form1()
  46.  
  47.         {
  48.  
  49.             InitializeComponent();
  50.  
  51.         }
  52.  
  53.  
  54.  
  55.         private void button1_Click(object sender, EventArgs e)
  56.  
  57.         {
  58.  
  59.             CheckCharecter = false;
  60.  
  61.             EvenOrNotEven = false;
  62.  
  63.             NotCorrect = false;
  64.  
  65.  
  66.  
  67.             label1.Text = "";
  68.  
  69.             for (int i = 0; i < textBox1.Text.Length; i++)
  70.  
  71.             {
  72.  
  73.                 if (textBox1.Text[i].ToString() == " ")
  74.  
  75.                 {
  76.  
  77.                     MessageBox.Show("Tek Metin Girin!!!\n");
  78.  
  79.                     EvenOrNotEven = true;
  80.  
  81.                     break;
  82.  
  83.                 }
  84.  
  85.                 else
  86.  
  87.                 {
  88.  
  89.                     for (int l = 0; l < characters3.Length; l++)
  90.  
  91.                     {
  92.  
  93.                         if (textBox1.Text[i] == characters3[l])
  94.  
  95.                         {
  96.  
  97.                             CheckCharecter = true;
  98.  
  99.                         }
  100.  
  101.                     }
  102.  
  103.  
  104.  
  105.                 }
  106.  
  107.             }
  108.  
  109.  
  110.  
  111.             if (CheckCharecter != false && EvenOrNotEven == false)
  112.  
  113.             {
  114.  
  115.                 for (int i = 0; i < textBox1.TextLength; i++)
  116.  
  117.                 {
  118.  
  119.                     if (textBox1.Text[i] == 'a' || textBox1.Text[i] == 'A' || textBox1.Text[i] == 'ı' || textBox1.Text[i] == 'I' || textBox1.Text[i] == 'o' || textBox1.Text[i] == 'O' || textBox1.Text[i] == 'u' || textBox1.Text[i] == 'U')
  120.  
  121.                     {
  122.  
  123.                         for(int j = i; j < textBox1.TextLength; j++)
  124.  
  125.                         {
  126.  
  127.                             if (textBox1.Text[j] == 'e' || textBox1.Text[j] == 'E' || textBox1.Text[j] == 'i' || textBox1.Text[j] == 'İ' || textBox1.Text[j] == 'ö' || textBox1.Text[j] == 'Ö' || textBox1.Text[j] == 'ü' || textBox1.Text[j] == 'Ü')
  128.  
  129.                             {
  130.  
  131.                                 label1.Text = "Büyük Ünlü Uyumuna Uymuyor";
  132.  
  133.                                 NotCorrect = true;
  134.  
  135.                                 break;
  136.  
  137.                                 break;
  138.  
  139.                                 break;
  140.  
  141.                             }
  142.  
  143.                         }
  144.  
  145.                     }
  146.  
  147.                     else if (textBox1.Text[i] == 'e' || textBox1.Text[i] == 'E' || textBox1.Text[i] == 'i' || textBox1.Text[i] == 'İ' || textBox1.Text[i] == 'ö' || textBox1.Text[i] == 'Ö' || textBox1.Text[i] == 'ü' || textBox1.Text[i] == 'Ü')
  148.  
  149.                     {
  150.  
  151.                         for (int j = i; j < textBox1.TextLength; j++)
  152.  
  153.                         {
  154.  
  155.                             if (textBox1.Text[j] == 'a' || textBox1.Text[j] == 'A' || textBox1.Text[j] == 'ı' || textBox1.Text[j] == 'I' || textBox1.Text[j] == 'o' || textBox1.Text[j] == 'O' || textBox1.Text[j] == 'u' || textBox1.Text[j] == 'U')
  156.  
  157.                             {
  158.  
  159.                                 label1.Text = "Büyük Ünlü Uyumuna Uymuyor";
  160.  
  161.                                 NotCorrect = true;
  162.  
  163.                                 break;
  164.  
  165.                                 break;
  166.  
  167.                                 break;
  168.  
  169.                             }
  170.  
  171.                         }
  172.  
  173.                     }
  174.  
  175.                 }
  176.  
  177.  
  178.  
  179.             }
  180.  
  181.             else
  182.  
  183.             {
  184.  
  185.                 MessageBox.Show("Sesli Harf Yok");
  186.  
  187.             }
  188.  
  189.  
  190.  
  191.             if (NotCorrect == false)
  192.  
  193.             {
  194.  
  195.                 label1.Text = "Büyük Ünlü Uyumuna Uyuyor!!!";
  196.  
  197.             }
  198.  
  199.         }
  200.  
  201.  
  202.  
  203.     }
  204.  
  205. }

Yorumlar (0)
Sadece kayıtlı kullanıcılar yorum yazabilir!
Son Güncelleme ( Çarşamba, 07 Eylül 2011 14:56 )  

PC PROGRAMLAMA GİRİŞ



Kimler Çevrimiçi