Will definitely leave positive rating upon all three parts a

Will definitely leave positive rating upon all three parts answered. Thanks

Solution

Answer

16) Option D - 0.0

As in code, no condition gets TRUE so no change in the discountRate variable Value. It remains same.

17) Option E - 23

As in code, Condition ( c > b ) is TRUE with given values but its nested Condition ( c <= a ) is FALSE so statement in else scope is printed 2 and then last statement is executed printing 3 on screen with final OUTPUT = 23

18) Option C - 2

As from code, steps of loop execution are

step1 :

sessioons (3) < required (6) CONDITION true

sessioons = 4 required = 5

step2 :

sessioons (4) < required (5) CONDITION true

sessioons = 5 required = 4

step3 :

sessioons (5) < required (4) CONDITION false

NO EXECUTION OF LOOP BODY

Will definitely leave positive rating upon all three parts answered. ThanksSolutionAnswer 16) Option D - 0.0 As in code, no condition gets TRUE so no change in

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site