I assume you have some experience with javascript/html since you are in a college class that requires it...
1. make a form with text inputs for each value needed
2. add up values in forms
3. use if statements/document.write to determine and print the mark
This link might help you if you don't know the syntax:
http://www.w3schools.com/js/default.asp