[Year 12 SofDev] VITTA SD exam 1 - C7b

Mark KELLY kel at mckinnonsc.vic.edu.au
Fri Aug 10 12:20:33 EST 2012


While the question asks about the efficiency of the nested IF, a more
important question may be why it's more effective.
After all, using the series of IF statements would end up with the wrong
answer.

Take a total of $1000 - all of the IF tests end up being true in turn, and
the total would end up having the discount set to 2 instead of 15 !

-- 
Mark Kelly
Manager of ICT, Reporting, IT Learning Area
McKinnon Secondary College
McKinnon Rd McKinnon 3204, Victoria, Australia
Direct line / Voicemail: +613 8520 9085, Fax +613 9578 9253
kel at mckinnonsc.vic.edu.au << use this, not Edumail please!
VCE IT Lecture Notes: http://vceit.com
Moderator: IT Applications Edulist

--
The illiterate of the 21st century will not be those who cannot read and
write, but those who cannot learn, unlearn and relearn - Alvin Toffler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20120810/7f1c1082/attachment.html 


More information about the sofdev mailing list