Skip to content

Commit a8da413

Browse files
committed
not ortalaması ödevi yapıldı.
1 parent d84e002 commit a8da413

11 files changed

+209
-0
lines changed

NotOrtalamasi/.idea/.gitignore

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NotOrtalamasi/.idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NotOrtalamasi/.idea/misc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NotOrtalamasi/.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NotOrtalamasi/.idea/uiDesigner.xml

+124
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NotOrtalamasi/.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NotOrtalamasi/NotOrtalamasi.iml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

NotOrtalamasi/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Java 101 Eğitimi Not Ortalaması Hesaplama Ödevi
2+
3+
Ödevde istenildiği gibi if-else yapısı kullanılmayarak
4+
sadece koşullu ifadeler kullanılarak ödev yapıldı.
5+
6+
<img src="img/notOrtalamasiImg.jpg"></img>
109 KB
Loading
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import org.w3c.dom.ls.LSOutput;
2+
3+
import java.util.Scanner;
4+
5+
public class NotOrtalamasiHesapla {
6+
public static void main(String[] args) {
7+
int mat, fizik, kimya, turkce, tarih, muzik;
8+
double ortalama;
9+
Scanner input = new Scanner(System.in);
10+
11+
System.out.print("Matematik notunuz: ");
12+
mat = input.nextInt();
13+
14+
System.out.print("Fizik notunuz: ");
15+
fizik = input.nextInt();
16+
17+
System.out.print("Kimya notunuz: ");
18+
kimya = input.nextInt();
19+
20+
System.out.print("Türkçe notunuz: ");
21+
turkce = input.nextInt();
22+
23+
System.out.print("Tarih notunuz: ");
24+
tarih = input.nextInt();
25+
26+
System.out.print("Müzik notunuz: ");
27+
muzik = input.nextInt();
28+
29+
ortalama = (mat + fizik + kimya + turkce + tarih + muzik) / 6.0;
30+
31+
boolean checker = (ortalama >= 60) && sinifiGecti();
32+
checker = !(ortalama >= 60) && siniftaKaldi();
33+
}
34+
35+
public static boolean sinifiGecti() {
36+
System.out.println("Sınıfı Geçti");
37+
return true;
38+
}
39+
40+
public static boolean siniftaKaldi() {
41+
System.out.println("Sınıfta Kaldı");
42+
return true;
43+
}
44+
}

0 commit comments

Comments
 (0)