Posts made by Itamar Tzadok

Here is some relevant javascript. I haven't used it for a while but it should work. The principle is simple. You open the xml file, retrieve the elements you need and extract the data from these elements. It can be executed from a webpage and produce csv text which can be copied/pasted into a csv file. Hope this helps. smile

Loading the xml file:


function loadXML(file) {
if (document.implementation && document.implementation.createDocument) {
xmlDoc = document.implementation.createDocument("", "", null);
} else {
if (window.ActiveXObject) {
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
} else {
alert('Your browser can\'t handle this script');
return;
}
}
xmlDoc.async=false;
xmlDoc.load(file);
return xmlDoc;
}


Writing the desired data:

function writeData(xmlDoc) {
var str="";
var items = xmlDoc.getElementsByTagName('item');
for (var i=0;i<items.length;i++) {
var desc="";
for (var j=0;j<items[i].childNodes.length;j++) {
if (items[i].childNodes[j].nodeType!=1) continue;
var itemName=items[i].childNodes[j].nodeName;
if (itemName=='desc') {
desc=items[i].childNodes[j].firstChild.nodeValue;
// write text
str+=desc+"\n";
}
}
}
return str;
}

Moodle in English -> Gradebook -> Grades incomplete -> Re: Grades incomplete

by Itamar Tzadok -
If a submission gets at least 0.5 points, you can calculate the final grade by a formula such as

(0.25*Presentation + 0.25*Project + 0.5*Paper)

and multiply by

round((||Presentation||/100)+0.49,0)*round((||Project||/100)+0.49,0)*round((||Paper||/100)+0.49,0)

The last part should be 1 if all the assignments were submitted and graded or 0 if at least one assignment was not submitted or graded; and so the whole formula would be 0 if at least one assignment was not submitted or graded and that 0 can be displayed as incomplete.

smile
Questions 1 & 4 only look the same but they're not, right? (1) says (Answer: True), whereas (4) says (Answer: False). Could it be just a question description issue which you should be able to fix by editing one of the questions and changing its description? smile