This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts "Ortalama Hesaplama" | |
| print "Vize Notu Girin=" | |
| x=gets | |
| print "Final notu Girin=" | |
| y=gets | |
| k=x.to_i*0.4 + y.to_i*0.6 | |
| puts "Donem Sonu ortalamaniz #{k}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts"Ortalama Hesaplayici" | |
| print"Vize Notunu Giriniz=" | |
| x=gets.chomp | |
| print"Final Notunu Giriniz=" | |
| y=gets.chomp | |
| k=x.to_i*0.4 + y.to_i*0.6 | |
| puts"Donem Sonu Ortalamaniz= #{k}" | |
| if k>=60 | |
| puts"Bu dersten gectiniz." | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts"Ortalama Hesaplayici" | |
| print"Vize Notunu Giriniz=" | |
| x=gets.chomp | |
| print"Final Notunu Giriniz=" | |
| y=gets.chomp | |
| k=x.to_i*0.4 + y.to_i*0.6 | |
| puts"Donem Sonu Ortalamaniz= #{k}" | |
| if k>90 | |
| puts"Bu dersten A aldiniz" | |
| else if (90>k and k>75) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts" Boy Kilo Endeksi Hesaplama" | |
| print "Kilonuzu Giriniz=" | |
| x=gets.to_f | |
| print"Boyunuzu metre cinsinden giriniz=" | |
| y=gets.to_f | |
| z=y**2 | |
| k=x.to_f / z.to_f | |
| puts"Boy kilo Endeksiniz = #{k} " | |
| if (k>0 and k<=18.4) | |
| puts"Zayifsiniz" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts"Ortalama Hesaplayici" | |
| print"Vize Notunu Giriniz=" | |
| x=gets.chomp | |
| print"Final Notunu Giriniz=" | |
| y=gets.chomp | |
| k=x.to_i*0.4 + y.to_i*0.6 | |
| puts"Donem Sonu Ortalamaniz= #{k}" | |
| if k>=90 | |
| puts"Bu dersten A aldiniz" | |
| else if (90>k and k>=75) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts"Ondalik sayi olusturma" | |
| print"Sa yinizin tam kismini giriniz=" | |
| x=gets.to_i | |
| print"Sayinizin ondalik kismini giriniz=" | |
| y=gets.to_i | |
| puts "Sayiniz asagida yazmaktadir" | |
| k=x.to_i,y.to_i | |
| print k | |
| puts"Islem tamamlanmistir." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| array = [ "fat", "bat", "rot"] dizisindeki elemanlara "man" ekleyecek kod aşağıdaki seçeneklerden hangisidir? | |
| Select one: | |
| a. counter = 0 | |
| array = [ "fat", "bat", "rat"] | |
| while counter < array.length | |
| puts array[counter] + "man" | |
| counter += 1 | |
| end Correct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #encoding: utf-8 | |
| p "kelimeyi yazınız" | |
| i=gets.chomp.to_s | |
| puts | |
| "Kelimeniz #{i}, : " | |
| a = ["a","b","c","ç"] | |
| a.each do |x=dizi.pop| | |
| if i[x] | |
| p "#{x} numara karşılığı 2" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Kare | |
| def initialize(kenar) | |
| @kenar=kenar | |
| end | |
| def alan | |
| @kenar*@kenar | |
| end | |
| def cevre | |
| 4*@kenar | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Celcius | |
| def initialize(celcius) | |
| @celcius = celcius | |
| end | |
| def fahrenayt | |
| (@celcius*9/5)+32 | |
| end | |
| end |
OlderNewer