This was my first attempt at Latex. I am using LaTeXila. I fail to understand why my table of contents reproduces my entire report and then assigns it a page number:
Contents
0.1 1 A bin of 50 manufactured parts contain three defective parts and 47 non-defective parts. ... Implement Bubble sort and Randomized Quicksort and make a comparative report of their performance . . . . . . . . . . . . . . . . . . . . . 2
The 'code' part:
\begin{document}
\maketitle{}
\tableofcontents{
\begin {enumerate}
\item {question 1}\item {question 2}\item {question 3}\item {question 4}
\end{enumerate}}
%\chapter{Assignment}
\begin{section} {1 A bin of 50 manufactured parts contain three defective parts and 47 non-defective parts. ... Implement Bubble sort and Randomized Quicksort and make a comparative report of their performance }
\end{section}
\end{document}