Nyp-1 2. Hafta 2. Bölüm Uygulamaları
Nyp-1 2. Hafta 2. Bölüm Uygulamaları NYP1 4. Ders Sunumu NYP-1 2. Hafta 2. Bölüm Uygulamaları
Okumaya devam etNyp-1 2. Hafta 2. Bölüm Uygulamaları NYP1 4. Ders Sunumu NYP-1 2. Hafta 2. Bölüm Uygulamaları
Okumaya devam etNyp-1 2. Hafta 1. Bölüm Uygulamaları NYP-1 3. Ders Sunumu Nyp-1 2. Hafta 1. Bölüm Uygulamaları
Okumaya devam etJava-1 Bölüm-3 Nesnelerin Başlangıç Durumu ve Temizlik Java-1 Bölüm-3 Kodları java1 Bölüm-3 Sunumu
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 |
public class ogrencihesap { static int aa,ba,bb,cb; String ad, ogrno; int vnot, fnot; double ortalama; void ortalamahesap() { ortalama=vnot*0.4+fnot*0.6; int ort1= (int)ortalama; System.out.println(ad+" nin ortalamasi:"+ort1+ " harf degeri:"+nothesap(ort1)); } String nothesap(int ort) { if(ort>=aa) return "AA"; if(ort>=ba) return "BA"; if(ort>=bb) return "BB"; if(ort>=cb) return "CB"; else return "FF"; } public static void main(String[] asdasd) { ogrencihesap caglar = new ogrencihesap(); ogrencihesap ahmet = new ogrencihesap(); ogrencihesap mustafa = new ogrencihesap(); //ogrencihesap[] ogrenci = new ogrencihesap[100]; //ogrenci[0]= new ogrencihesap(); caglar.aa=80; //aa=80; // yukaridaki ile ayni statikler icin caglar.ba=50; caglar.bb=30; caglar.cb=5; caglar.ad="caglar"; caglar.ogrno="1234"; caglar.vnot=80; caglar.fnot=100; caglar.ortalamahesap(); ahmet.ad="ahmet"; ahmet.ogrno="1234"; ahmet.vnot=10; ahmet.fnot=5; ahmet.ortalamahesap(); mustafa.ad="mustafa"; mustafa.ogrno="1234"; mustafa.vnot=100; mustafa.fnot=20; mustafa.ortalamahesap(); } } |
1. hafta için Java-1 dersi örnek kodları java1 Bölüm-1 Kodları java1 Bölüm-2 Kodları
Okumaya devam et
Son Yorumlar