Page 1 of 1

r this question, you are required to write code. You may writet E (or even Notepad) first and then paste it in the textb

Posted: Sat May 14, 2022 3:38 pm
by answerhappygod
R This Question You Are Required To Write Code You May Writet E Or Even Notepad First And Then Paste It In The Textb 1
R This Question You Are Required To Write Code You May Writet E Or Even Notepad First And Then Paste It In The Textb 1 (313.73 KiB) Viewed 48 times
R This Question You Are Required To Write Code You May Writet E Or Even Notepad First And Then Paste It In The Textb 2
R This Question You Are Required To Write Code You May Writet E Or Even Notepad First And Then Paste It In The Textb 2 (412.54 KiB) Viewed 48 times
r this question, you are required to write code. You may writet E (or even Notepad) first and then paste it in the textbox. Only ey be posted. You start the question with full marks and then! ur answer should consist of the code for a class called Marksma emonstrate how MarksManager may be used. The class and Ma ou cannot lose all of your marks for making too many mistakes he university makes use of a centralised system for the capture a he concept of the singleton design pattern. The singleton class Marks Manager hides all of its fields and / or properties; clients of t which the Marksmanager will be used employs threading. The Marks Manager may be set to be either in Calculation mode c vhich receives a. Boolean variable to set the MarksManager to Ca Calculation mode, the MarksManager allows for marks to be capt public method CaptureMark, which receives ExarnMark objects. not in CalculationMode. The code for class Exam Mark is shown b class Exam Mark public string Student Number | get: private public string SubjectCodeget: private set public double Percentage (get: private set:

class ExamMark { public string StudentNumber { get; private set; } public string SubjectCode { get; private set: public double Percentage { get; private set; } public ExamMark(string StudentNumber, string SubjectCode, { this.StudentNumber - Student Number: this.SubjectCode = SubjectCode: this.Percentage - Percentage; } } must keep track of a centralised list of ExamMarks. The Mark y which a student number may be passed to the Marksmana t number from the saved list of student numbers. The Calcu. e MarksManager is set to Calculation mode; otherwise it shou Marks Manager (maximum 12 marks) te for the class Marks Manager Method (maximum 3 marks) nent of code in which two Marks Manager objects are declared erhiect using different subject codes. Set the Ma