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

\printanswers{}

\input{0-include}
\input{0-gradetables}

\title{\textsc{Year 9 Mathematics\\ Topic 7b: Index Laws}}
\author{PEN Education}
\date{2024}

\backgroundsetup{placement = top, hshift=0cm, vshift=-\textwidth*0.70, scale = 0.75, 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
\thispagestyle{headandfoot}

\dotfill

\tableofcontents

\dotfill
\section{Introduction}
    \setcounter{secmarks}{0}
    \input{1-intro}
    \setcounter{sec1marks}{\thesecmarks}
\section{Fractional Indices}
    \setcounter{secmarks}{0}
    \input{2-ind-frac}
    \setcounter{sec2marks}{\thesecmarks}
\section{Scientific Notation}
    \setcounter{secmarks}{0}
    \input{3-sci-not}
    \setcounter{sec3marks}{\thesecmarks}
\section{Significant Figures}
    \setcounter{secmarks}{0}
    \input{4-sig-fig}
    \setcounter{sec4marks}{\thesecmarks}
\newpage
\section{Homework}
    \setcounter{secmarks}{0}
    \input{0-homework}
    \setcounter{hwmarks}{\thesecmarks}


\foreach \i in {1,2,...,10} {
  \addtocounter{totalmarks}{\value{sec\i marks}}
}
\addtocounter{totalmarks}{\value{hwmarks}}


\section{Marking}
\mygradetable{4}

\end{document}

% Local Variables:
% TeX-engine: luatex
% End:
