Friday, November 9, 2012

SOFT6008 Assessment 1 Results



Assessment 1 did not go as well as I had expected it would. The average mark was 41%

The results are available here. Use the last 4 digits of your ID number to find your result. If your number does not appear, it is because there was some issue. The issue was most likely that you are not registered. I will try to find out on Monday if I can give out results to students who are not yet registered.

[Update: unregistered students' results appear there now too]

If you got a in this assessment then you need to get at least
(400-4a)/6 in assessment 2 to be sure of a pass.

The marking scheme is here

Suggested solution:
function realman (fin)

{
var valid = new Boolean("true");

datepart = fin.substring(0,6);
individualpart = fin.substring(7,10);
bothstring = datepart + individualpart;
bothnumber = parseInt (bothstring, 10);
themod = bothnumber % 31;
checkletter1 = fin.substring(10,11).toUpperCase();
madfinstring = "0123456789ABCDEFHJKLMNPRSTUVWXY";
checkletter2 = madfinstring.charAt(themod);

if (checkletter1 != checkletter2)
    {
    valid = "false";
    }

individualnumber = parseInt(individualpart);
sex = individualnumber %2;
if (sex == 0)
    {
    valid=false;
    }
   


return valid

}

No comments: