\documentclass[12pt,twoside,addpoints]{exam}

\input{0-include}
% that's all folks

\title{Year 9 Mathematics | Topic 2 | Pythagoras and Surds [2/2]}
\author{PEN Education}
\date{2024}

\backgroundsetup{placement = top, hshift=0cm, vshift=-\textwidth*0.5, scale = 0.85, contents ={\ifnum\value{page}=1 \includegraphics[width=\textwidth]{img/logo-cover.png}\else \fi}}
\begin{document}

\maketitle % this sets the current page style to title
\dotfill

\printanswers

\tableofcontents

\dotfill
\section{Introduction}
    \setcounter{secmarks}{0}
    \input{1-intro}
    \setcounter{sec1marks}{\thesecmarks}
\section{Review}
    \setcounter{secmarks}{0}
    \input{2-review}
    \setcounter{sec2marks}{\thesecmarks}
\section{Special Products}
    \setcounter{secmarks}{0}
    \input{3-specials}
    \setcounter{sec3marks}{\thesecmarks}
\section{Rationalising the Denominator}
    \setcounter{secmarks}{0}
    \input{4-rationals}
    \setcounter{sec4marks}{\thesecmarks}
\section{Pythagoras in 3-Dimensions!}
    \setcounter{secmarks}{0}
    \input{5-3d}
    \setcounter{sec5marks}{\thesecmarks}
\section{Binomial Denominators}
    \setcounter{secmarks}{0}
    \input{6-binomial}
    \setcounter{sec6marks}{\thesecmarks}
\section{Irrational Numbers and Surds}
    \setcounter{secmarks}{0}
    \input{7-irrational}
    \setcounter{sec7marks}{\thesecmarks}
\section{Homework}
    \setcounter{secmarks}{0}
    \input{0-homework}
    \setcounter{sec8marks}{\thesecmarks}
\section{Marks}
\foreach \i in {1,2,...,10} {
  \addtocounter{totalmarks}{\value{sec\i marks}}
}

\begin{center}
\begin{minipage}[m]{\linewidth}
Marker's use only. \\ \large
\begin{tabularx}{\linewidth}{||>{\bfseries}l||>{\centering}X|>{\centering}X|>{\centering}X|>{\centering}X|>{\centering}X|>{\centering}X|>{\centering}X|>{\centering}X||>{\bfseries}c||}
\hline \hline
\rule[-0.75em]{0em}{2em}\parbox[m]{2.75cm}{\MakeUppercase{Section}}
    & 1
    & 2
    & 3
    & 4
    & 5
    & 6
    & 7
    & HW
    & Total
    \\ \hline
\rule[-1.75em]{0em}{4em}\parbox[m]{0.15\linewidth}{\MakeUppercase{Marks}}  
    & $\dfrac{}{\arabic{sec1marks}}$ 
    & $\dfrac{}{\arabic{sec2marks}}$  
    & $\dfrac{}{\arabic{sec3marks}}$ 
    & $\dfrac{}{\arabic{sec4marks}}$ 
    & $\dfrac{}{\arabic{sec5marks}}$ 
    & $\dfrac{}{\arabic{sec6marks}}$
    & $\dfrac{}{\arabic{sec7marks}}$
    & $\dfrac{}{\arabic{sec8marks}}$
    & $\dfrac{}{\thetotalmarks}$  \\ \hline \hline
\end{tabularx}    
\end{minipage}
\end{center}

%\section{The End}
%\hspace{4.5cm}
%    \input{0-outro}

\end{document}
