Question PSC-COND-0071
HardWhat is the output of this pseudocode?
Integer units = 320, bill
if (units <= 100)
bill = units * 3
else if (units <= 300)
bill = 300 + (units - 100) * 5
else
bill = 300 + 1000 + (units - 300) * 8
end if
Print bill
- A.
1300
- B.
1600
- C.
Sign up free to see the answer and a step-by-step explanation.