/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package automarker;

import java.util.*;
/**
 *
 * @author Annie
 */
public class SummaryReport extends Report{
    private double totalMark;
    private ArrayList<Question> questions;

    public SummaryReport(Date dateCreated) {
        super(dateCreated);
    }

    public double getTotalMark() {
        return totalMark;
    }

    public void setTotalMark(double totalMark) {
        this.totalMark = totalMark;
    }

    public ArrayList<Question> getQuestion() {
        return questions;
    }

    public void setQuestion(ArrayList<Question> questions) {
        this.questions = questions;
    }
    
    
}

@@ -339,38 +339,38 @@
 e ArrayList%3C
-Ques
+Solu
 tion%3E 
-ques
+solu
 tions;%0A%0A    
@@ -410,38 +410,105 @@
 ated
-) %7B%0A        super(dateCreated)
+, ArrayList%3CSolution%3E solutions) %7B%0A        super(dateCreated);%0A        this.solutions = solutions
 ;%0A  
@@ -689,28 +689,28 @@
 c ArrayList%3C
-Ques
+Solu
 tion%3E getQue
@@ -706,24 +706,25 @@
 ion%3E get
-Ques
+Solu
 tion
+s
 () %7B%0A   
@@ -735,20 +735,20 @@
  return 
-ques
+solu
 tions;%0A 
@@ -772,24 +772,25 @@
 void set
-Ques
+Solu
 tion
+s
 (ArrayLi
@@ -796,22 +796,22 @@
 ist%3C
-Ques
+Solu
 tion%3E 
-ques
+solu
 tion
@@ -832,29 +832,535 @@
 his.
-questions = questions
+solutions = solutions;%0A    %7D%0A%0A    public ArrayList%3CString%3E displayReport()%7B%0A        ArrayList%3CString%3E report = new ArrayList%3CString%3E();%0A        int count = 1;%0A        double totalMark = 0;%0A        %0A        report.add(%22Question #:%5CtMark:%22);%0A        for (Solution sol : solutions) %7B%0A            report.add(%22Question %22 + count + %22: %5Ct%22 + sol.getMark());%0A            totalMark += sol.getMark();%0A            %0A            count++;%0A        %7D%0A        %0A        report.add(%22%5CnTotal mark: %5Ct %22 + totalMark);%0A        %0A        return report
 ;%0A  

Update SummaryReport class