-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
182 lines (116 loc) · 5.37 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02_Variables
{
internal class Program
{
static void Main(string[] args)
{
#region Double Değişkenler
//double number;
//number = 4.85;
//Console.WriteLine(number);
//Console.WriteLine("****** Fiyat Listesi ******");
//Console.WriteLine();
//double applePrice, orangePrice, strawberryPrice, potatoPrice, tomatoPrice;
//applePrice = 14.85;
//orangePrice = 20.95;
//strawberryPrice = 45;
//potatoPrice = 9.74;
//tomatoPrice = 6.88;
//Console.WriteLine("----Elma Birim Fiyatı: " + applePrice);
//Console.WriteLine("----Portakal Birim Fiyatı: " + orangePrice);
//Console.WriteLine("----Çilek Birim Fiyatı: " + strawberryPrice);
//Console.WriteLine("----Patates Birim Fiyatı: " + potatoPrice);
//Console.WriteLine("----Domates Birim Fiyatı: " + tomatoPrice);
//Console.WriteLine();
//double appleGram,orangeGram,strawberryGram, potatoGram, tomatoGram;
//appleGram = 1.245;
//orangeGram = 2.650;
//strawberryGram = 0.750;
//potatoGram = 4.859;
//tomatoGram = 3.745;
//double appleTotalPrice = appleGram * applePrice;
//double orangeTotalPrice = orangeGram * orangePrice;
//double strawberryTotalPrice = strawberryGram * strawberryPrice;
//double potatoTotalPrice = potatoGram * potatoPrice;
//double tomatoTotalPrice = tomatoGram * tomatoPrice;
//Console.WriteLine("Alınan Ürün: Elma -"+"Birim Fiyat: "+applePrice+" - Gramaj: "+appleGram+" Toplam tutar: "+appleTotalPrice);
//Console.WriteLine("Alınan Ürün: Portakal -"+"Birim Fiyat: "+orangePrice+" - Gramaj: "+orangeGram+" Toplam tutar: "+orangeTotalPrice);
//Console.WriteLine("Alınan Ürün: Çilek -"+"Birim Fiyat: "+strawberryPrice+" - Gramaj: "+strawberryGram+" Toplam tutar: "+strawberryTotalPrice);
//Console.WriteLine("Alınan Ürün: Patates -"+"Birim Fiyat: "+potatoPrice+" - Gramaj: "+potatoGram+" Toplam tutar: "+potatoTotalPrice);
//Console.WriteLine("Alınan Ürün: Domates -"+"Birim Fiyat: "+tomatoPrice+" - Gramaj: "+tomatoGram+" Toplam tutar: "+tomatoTotalPrice);
//double shoppingTotalPrice = appleTotalPrice + orangeTotalPrice + strawberryTotalPrice + tomatoTotalPrice + potatoTotalPrice;
//Console.WriteLine();
//Console.WriteLine();
//Console.WriteLine("Alışveriş Toplam tutar:" + shoppingTotalPrice + " TL");
#endregion
#region Char Değişkenleri
//char symbol;
//symbol = 'a';
//Console.WriteLine(symbol);
#endregion
#region Klavyeden Veri Girişleri String Değişkenleri
//Console.WriteLine("**** C# Hava Yolları Yolcu Bilgisi ****");
//Console.WriteLine();
//string passengerName, passengerSurname, passengerDistrict, passengerCity, passengerAge, passengerIdentityNumber;
//Console.Write("Yolcu Adı: ");
//passengerName = Console.ReadLine();
//Console.Write("Yolcu Soyadı: ");
//passengerSurname = Console.ReadLine();
//Console.Write("İlçe Bilgisi: ");
//passengerDistrict = Console.ReadLine();
//Console.Write("Şehir Bilgisi: ");
//passengerCity = Console.ReadLine();
//Console.Write("Yolcu Yaş: ");
//passengerAge = Console.ReadLine();
//Console.Write("Yolcu TC Kimlik No: ");
//passengerIdentityNumber = Console.ReadLine();
//Console.WriteLine();
//Console.WriteLine("-------------");
//Console.WriteLine("Yolcu TC Kimlik numarası: "+passengerIdentityNumber+" -Yolcu Ad Soyad: " + passengerName + " " + passengerSurname+" "+passengerDistrict+" / "+passengerCity+" "+passengerAge);
#endregion
#region Klavyeden Tam Sayı Girişleri ve Dönüşümler
//int shoesPrice, computerPrice,chairPrice,tvPrice;
//shoesPrice = 1000;
//computerPrice = 20000;
//chairPrice = 5000;
//tvPrice = 12000;
//int shoesCount,computerCount,chairCount,tvCount;
//Console.Write("Lütfen aldığınız ayakkabı sayısını giriniz: ");
//shoesCount = int.Parse(Console.ReadLine());
//Console.Write("Lütfen aldığınız bilgisayar sayısını giriniz: ");
//computerCount = int.Parse(Console.ReadLine());
//Console.Write("Lütfen aldığınız sandalye sayısını giriniz: ");
//chairCount = int.Parse(Console.ReadLine());
//Console.Write("Lütfen aldığınız televizyon sayısını giriniz: ");
//tvCount = int.Parse(Console.ReadLine());
//int totalPrice = shoesCount * shoesPrice + computerCount * computerPrice + chairCount * chairPrice + tvCount * tvPrice;
//Console.WriteLine();
//Console.WriteLine("Toplam Ödemeniz gereken tutar: " + totalPrice);
#endregion
#region Klavyeden ondalıklı sayı işlemleri
//double exam1, exam2, exam3, result;
//Console.Write("Lütfen 1. Sınav notunu giriniz: ");
//exam1=double.Parse(Console.ReadLine());
//Console.Write("Lütfen 2. Sınav notunu giriniz: ");
//exam2=double.Parse(Console.ReadLine());
//Console.Write("Lütfen 3. Sınav notunu giriniz: ");
//exam3 =double.Parse(Console.ReadLine());
//result = (exam1 + exam2 + exam3) / 3;
//Console.WriteLine();
//Console.WriteLine("Sınav Ortalamanız: " + result);
#endregion
#region Klavyeden Karakter Girişleri
//char gender;
//Console.Write("Lütfen cinsiyet giriniz: ");
//gender=char.Parse(Console.ReadLine());
//Console.WriteLine("Seçtiğiniz Cinsiyet: " + gender);
#endregion
Console.Read();
}
}
}