1.2 Grade Book Assignment

Overview
1.Getting Started
A Make a copy of your Grade Book 1.1 LastName folder and .sln file and rename the copied versions to Grade Book 1.2 LastName
B The class diagram below represents the current structure of the GradeBookScenario solution
Grade Book 1.2 starting class diagram. MainWindow references GradeBook, GradeBook references Student, Student references Course, and Course references Final and Midterm Assignment values. No change markers are used.
Class Diagram - Starting Structure
  • New
  • Changed
  • Removed
2.Add to class structure
A Add classes and define fields based on the class diagram below
Grade Book 1.2 Add Structure class diagram. Green N markers identify the new Instructor and Attempt classes, their fields, and the PrimaryInstructor, Teacher, CertificationExam, and Submission relationships.
Class Diagram - Add Structure
  • New
  • Changed
  • Removed
B Build your solution and ensure it compiles without errors or warnings
3.Instantiate Instructor and an Attempt
A In the MainWindow in the newBlackBoardButton_Click, instantiate the Instructor and their Attempt based on the object diagram below
Grade Book 1.2 Instructor instantiation object diagram. MainWindow, GradeBook, Student, and Course lead to the new Instructor Alan and Alan’s Attempt. N markers identify the new Instructor and Attempt objects and Teacher and CertificationExam references.
Object Diagram - Instantiate Instructor and Attempt
  • New
  • Changed
  • Removed
B Check Your Work:
Visual Studio debugger values for the Instructor object used to check Grade Book 1.2 work.
Check Your Work - Instructor Values
1 Set a breakpoint on the end curly brace of the newBlackBoardButton_Click
2 Start the application. Click the New Blackboard button
3 Ensure the your values match the values below
4.Add Canvas to the application
A Create a new button in the user interface by adding the code below into the Xaml between the Sta and End Canvas comments
<Button x:Name="newCanvasButton" Content="New Canvas" Click="newCanvasButton_C
B Create an event handler by double clicking the new button
Grade Book 1.2 event-handler class diagram. MainWindow retains newBlackboardButton_Click and adds newCanvasButton_Click. Its Blackboard reference still points to GradeBook. N marks the new event handler.
Class Diagram - Event Handler
  • New
  • Changed
  • Removed
C In the MainWindow, define a field named Canvas of type GradeBook
Grade Book 1.2 Canvas field class diagram. MainWindow has its existing Blackboard reference and a new Canvas reference to GradeBook. N marks the new Canvas relationship; the event handlers are also shown.
Class Diagram - Canvas Field
  • New
  • Changed
  • Removed
D In the newCanvasButton_Click event handler, instantiate and assign values to objects based on the object diagram below
Grade Book 1.2 Canvas object diagram. MainWindow Blackboard is null and Canvas points to a new GradeBook instance. That GradeBook references Student Samantha, Course English Comp, Final and Midterm Assignment objects, Instructor Jeff, and an Attempt. N marks the new Canvas reference, new instances, and the object-reference connections created for Canvas.
Object Diagram - Canvas Values
  • New
  • Changed
  • Removed
E Check Your Work (Canvas):
Visual Studio debugger values for the Canvas GradeBook used to check Grade Book 1.2 work.
Check Your Work - Canvas Values
1 Set a breakpoint on the ending curly brace of the newCanvasButton_Click
2 Start the application. Click the New Canvas button
3 Ensure that your values match the values below
5.The class diagram below represents the structure of the application at the end of this assignment
Grade Book 1.2 ending class diagram. The original MainWindow to GradeBook to Student to Course to Assignment structure remains. N markers identify the new Canvas event handler and reference, Instructor and Attempt classes and fields, and their associated relationships.
Class Diagram - End Structure
  • New
  • Changed
  • Removed
6.Submit to the Feedback System
A Ensure that all code is StyleCop compliant
B Zip the solution and submit to the Feedback System
C Submit the Feedback System url to the correct assignment in Canvas