GradeBookScenario solutionMainWindow.xaml based on the class diagram below. Implement their event handlers separately in MainWindow.xaml.cs<Button x:Name="takeMidtermButton" Content="Take midterm" Click="takeMidtermButton_Click"/>
<Button x:Name="writeEssayButton" Content="Write midterm essay" Click="writeEssayButton_Click"/>
EnrolledCourse field based on the class diagram below and then update all references"Midterm" and "10/07/2018" for both Midterms and "Final" and "12/18/2018" for both Finals as arguments in the TakeAssignment callKnowledgeLevel as an argument in the CompleteAssignment callCompleteAssignment method, write if statements based on the activity diagram belowComplete methodSubmission field is instantiated, define a local variable of type double named difficultyFactor and assign it to 100 minus the half of the assignment's DifficultySubmission's Accuracy to half of the student's knowledgeLevel plus half of the difficultyFactor instead of 70Submission's CompletionDate to the date passed intakeMidtermButton_Click'New Blackboard' button. Click the 'Take midterm' buttonSubmission's Accuracy is 79.575 and that the CompletionDate is 10/07/2018Submission is nulltakeFinalButton_Click'New Blackboard' button. Click the 'Take final' buttonSubmission's Accuracy is 66.55 and that the CompletionDate is 12/18/2018writeEssayButton_Click'New Canvas' button. Click the 'Write midterm essay' buttonSubmission's Accuracy is 86.08 and that the CompletionDate is 10/07/2018Submission is nullwriteFinalPaperButton_Click'New Canvas' button. Click the 'Write final essay' buttonSubmission's Accuracy is 77.35 and that the CompletionDate is 12/18/2018GetHelp method, add a conditional statement based on the activity diagram belowTutorStudent methodKnowledgeLevel is greater than the student's KnowledgeLevel. If it is, increase the NumberOfStudentsTutored by 1tutorArthurButton_Click'New Blackboard' button. Click the 'Tutor Arthur' buttonNumberOfStudentsTutored is 1RequiredSessions is 2'Tutor Arthur' buttonNumberOfStudentsTutored is 2 and that Arthur's RequiredSessions is 1'Tutor Arthur'NumberOfStudentsTutored is 3, that Arthur's RequiredSessions is 0 and that Arthur's IsOnProbation field is falsetutorSamanthaButton_Click'New Canvas' button. Click the 'Tutor Samantha' buttonNumberOfStudentsTutored is 1 and Samantha's RequiredSessions is 3