The compiler complains that you're referring to totalScore from the main() method, because totalScore is a member of Module an main() is not. You can only refer to totalScore by accessing an instance of Module.
However, there's a better fix. Note that your getGrade() method doesn't use the ts parameter at all. You can remove it and then call getGrade() without passing totalScore.
You have other issues:
A method with a name starting with get- is generally expected to return something. Your getMark() and getGrade() methods don't return anything. Name them promptForMark() and printGrade() instead.
The studentScore field is overwritten in different calls to getMark(). You probably want to make it a local variable instead of a private member.
The moduleName, projectOneMark, projectTwoMark, examMark and grade fields are unused.
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop