If Function Assignment (3)
If Function Assignment (3)
AND
OR
IF AND OR
Name Age Qualification Experience Promotion Promotion
A 40 16 15 0 TRUE
B 35 18 12 TRUE TRUE
C 55 14 10 FALSE FALSE
D 20 12 5 FALSE TRUE
E 60 16 20 FALSE FALSE
Name Total Marks Obtained Marks Percentage Status
Ali 500 300 60 PASS
Ahmed 500 420 84 PASS
Aslam 500 220 44 FAIL
Zain 500 370 74 PASS
Uzair 500 120 24 FAIL
<50 Fail
>=50 Pass
Name Total Marks Obtained Marks Percentage Status
Ali 500 300 60 GOOD
Ahmed 500 420 84 EXCELLENT
Aslam 500 220 44 FAIL
Zain 500 370 74 GOOD
Uzair 500 120 24 FAIL
<50 Fail
>50<80 Good
>80 Excellent
Units
Previous Current Electricity Rs. 5/Unit if Units
Name Consume
Reading Reading Price Consumed are less than
d
or equals to 500
A 900 1150 250 1250
Rs. 7/Unit if Units
B 800 1200 400 1550 Consumed are greater
C 700 1000 300 1500 than 500
D 8000 8900 900 6300
E 6700 8100 1400 9800
F 4500 5400 900 6300
Units
Previous Current Electricity Rs. 5/Unit for the FIRST
Name Consume Self Check
Reading Reading Price 100 units consumed
d
A 900 1150 250 1550 1550 Rs. 7/Unit for ramining
consumption
B 800 1200 400 2600 2600
C 700 1000 300 1900 1900
D 8000 8900 900 6100 6100
E 6700 8100 1400 9600 9600
F 4500 5400 900 6100 6100