Kapitel 3 Flashcards
1
if (y == 20)
x = 0;
2
if (hours > 40)
payRate *= 1.5;
3
if (sales >= 10000)
commission = 0.2;
4
if (max)
fees = 50;
5
if (x > 100) { y = 20; z = 40; }
6
if (a < 10) { b = 0; c = 1; }
7
if (myCharacter == ‘D’)
System.out.println(“Goodbye”);
8
if (x > 100)
y = 20;
else
y = 0;
9
if (y == 100)
x = 1;
else
x = 0;
10
if (sales >= 50000.0)
commission = 0.2;
else
commission = 0.1;
11
if (a < 10) { b = 0; c = 1; } else { b = -99; c = 0; }
12
1 1
13
If the customer purchases this many coupons are
this many books . . . given.
1 1
2 1
3 2
4 2
5 3
10 3
14
if (amount1 > 10) { if (amount2 < 100) { if (amount1 > amount2) System.out.println(amount1); else System.out.println(amount2); } }
15
if (x > 0) { if (y < 20) { z = 1; } else { z = 0; } }