File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
Java_Project_26/src/java_project_26 Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 4
4
/Java_Project_24 /build /
5
5
/Java_Project_24 /nbproject /private /
6
6
/Java_Project_25 /build /
7
- /Java_Project_26 /nbproject /private /
7
+ /Java_Project_26 /nbproject /private /
8
+ /Java_Project_26 /build /
Original file line number Diff line number Diff line change 4
4
* and open the template in the editor.
5
5
*/
6
6
package java_project_26 ;
7
-
7
+ import java . util . Scanner ;
8
8
/**
9
9
*
10
10
* @author ismailtasdelen
@@ -16,6 +16,22 @@ public class Java_Project_26 {
16
16
*/
17
17
public static void main (String [] args ) {
18
18
// TODO code application logic here
19
+ //
20
+ // Örnek :
21
+ //
22
+ double avm , indirim =0 , odeme =0 ;
23
+ Scanner tara = new Scanner (System .in );
24
+ System .out .println ("Alışveriş miktarınızı giriniz : " );
25
+ avm = tara .nextDouble ();
26
+ if (avm <= 1000 )
27
+ indirim = avm * 5 / 100 ;
28
+ else if (avm >= 1000 & avm < 10000 )
29
+ indirim = avm * 8 /100 ;
30
+ else if (avm >=10000 )
31
+ indirim = avm * 8.5 / 100 ;
32
+
33
+ odeme = avm - indirim ;
34
+ System .out .println ("Ödenecek :" + odeme );
19
35
}
20
36
21
37
}
You can’t perform that action at this time.
0 commit comments