[Year 12 SofDev] CSE/IARTV SD exam - question C4c
ATKINSON-BUCK, Damien
Damien.ATKINSON-BUCK at ivanhoe.com.au
Mon Oct 17 17:05:33 EST 2011
One of mine said that too, but I insisted that he couldn't have it because it wouldn't pass through the first validation of the 1st or 2nd digit referring to the card type - If Karl "has it in mind"
Damien Atkinson-Buck
Member of Academic Staff (Secondary)
________________________________
[Description: Description: cid:image002.jpg at 01CA7D93.5FFD22D0]<http://myivanhoe.net/>
PO BOX 91 The Ridgeway, Ivanhoe, Victoria 3079 Australia
Telephone +61 3 9490 3848 Facsimile +61 3 9490 3490
mailto:damien.atkinson-buck at ivanhoe.com.au
http://myivanhoe.net<http://myivanhoe.net/>
From: Mark KELLY [mailto:kel at mckinnonsc.vic.edu.au]
Sent: Monday, 17 October 2011 2:59 PM
To: Year 12 Software Development Teachers' Mailing List
Subject: Re: [Year 12 SofDev] CSE/IARTV SD exam - question C4c
Another of my (less able!) students found a third logic fault in the code. If the CC number is all zeroes, it comes through as "valid" because the last digit of the total (zero) is 0!
On 17 October 2011 14:41, Mark KELLY <kel at mckinnonsc.vic.edu.au<mailto:kel at mckinnonsc.vic.edu.au>> wrote:
The C4c question expects students to find the logical error relating to the odd/even digit logic mixup, but there's another big logical problem with the pseudocode that several of my kids detected.
The "Total = Total + 2 * digit" line is adding the digit times 2 (e.g. 7*2=14) instead of adding the individual digits of the calculation (1,4) so the total is way off !
My better kids found that error and didn't deign to mention the bleeding obvious one that they were intended to find. I gave them bonus marks :-)
--
Mark Kelly
Manager of ICT, Reporting, IT Learning Area
McKinnon Secondary College
McKinnon Rd McKinnon 3204, Victoria, Australia
Direct line / Voicemail: +613 8520 9085<tel:%2B613%208520%209085>, Fax +613 9578 9253<tel:%2B613%209578%209253>
kel at mckinnonsc.vic.edu.au<mailto:kel at mckinnonsc.vic.edu.au>
VCE IT Lecture Notes: http://vceit.com
Moderator: IT Applications Edulist<http://www.edulists.com.au/>
Want a good time? Call 0112358. Ask for Mr Fibonacci.
--
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<mailto:kel at mckinnonsc.vic.edu.au>
VCE IT Lecture Notes: http://vceit.com
Moderator: IT Applications Edulist<http://www.edulists.com.au/>
Want a good time? Call 0112358. Ask for Mr Fibonacci.
Privacy, Virus and Copyright Warning
The information contained in this electronic message (e-mail), and any files transmitted with it:
* is intended for the named recipients only. If you have received this in error, please advise the sender and delete it and any copies immediately;
* Any personal information in this email must be used in accordance with the Privacy Act 1988 and this always applies even if it has been sent to you in error.
* represents the views of the sender and does not necessarily represent the views or formal advice of Ivanhoe Grammar School;
* may be subject to Copyright, so no further use should be made of it without the author's permission.
The School does not represent or warrant that the email or any files attached do not contain errors or are free from computer viruses or other defects nor does it accept responsibility for any loss or damage resulting directly or indirectly from the use of the email or any attached files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/c7532778/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 9302 bytes
Desc: image001.jpg
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/c7532778/image001.jpg
More information about the sofdev
mailing list