[Year 12 SofDev] VITTA SD 2011 exam 2 - C6a

Mark KELLY kel at mckinnonsc.vic.edu.au
Mon Aug 13 08:41:02 EST 2012


VITTA SD 2011 exam #2 - C6a/b/c

There's another deliberate logical error in the pseudocode that makes
itself shown in 1344's actual total fare. It's not specifically asked about
in the paper, but students might suggest it as an algorithmic fault in C6b
and C6c.

The very first record processed is not counted as a trip because
LastCustomerID is initialised as blank and does not match the
NextCustomerID in the very first record.  This explains why the actual
total is $2 less than the expected total.

You might want to add a question to see if kids can explain the discrepancy
in customer 1344's actual total fare.

Keep in mind that customer 1344's expected and actual fares should both be
$2 less than they are in the solution because there are only 2 trips for
that customer, not 3 as far as I can tell.



On 13 August 2012 08:19, Mark KELLY <kel at mckinnonsc.vic.edu.au> wrote:

> Hi all.  Playing with Section C, Q6a, customer 1344 is said in the
> solution to expect a $6.00 total fare, but I can only see 2 trips taken by
> that person, which would give an expected total of $4.00.
>
> Can someone confirm this?
>
> People using this exam will also need to note that the answers to these
> questions will change over time because the people's birthdates are used
> rather than their raw ages. So the troublesome 16 year old is now 17 in
> 2012, and is beyond the boundary condition! You might want to replace DOBs
> with raw ages instead.
>
> --
> Mark Kelly
>

-- 
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/20120813/49865a6d/attachment.html 


More information about the sofdev mailing list