diff --git a/report/src/report.tex b/report/src/report.tex index fc8705d7b6ba62b12508073e45270533d4f182e6..7b122551f5dd4677894d9af3c2c6828c8f4de799 100644 --- a/report/src/report.tex +++ b/report/src/report.tex @@ -104,7 +104,7 @@ So ``eins'' for \(d=1\), ``zwei'' for \(d=2\), and so on. Then for a few special cases we needed to create the function sayPreNumber(\(n\)) that only says ``ein'' instead of ``eins'' for \(n=1\) and just calls our normal sayNumber(\(n\)) function otherwise. This is necessary for cases like \(n=31\) which is read as ``EINunddreißig'' instead of ``EINSunddreißig''. -Another special fucntion is sayAftNumber(\(n\)) which only our normal sayNumber(\(\n\)) function if \(n\ne 0\). +Another special fucntion is sayAftNumber(\(n\)) which only our normal sayNumber(\(n\)) function if \(n \ne 0\). It is necessary for numbers like 100, 200, 300, \dots, as we want to say ``zweihundert'' for \(n=200\) and not ``zweihundertnull''. \begin{algorithm} @@ -143,15 +143,16 @@ as we want to say ``zweihundert'' for \(n=200\) and not ``zweihundertnull''. \ElsIf{\(\text{tens}=2\)} \State say(zwanzig) \ElsIf{\(\hdots\)} - \State \(\vdots\) + \State \(\vdots\) \EndIf \EndIf \Else \Comment{3-digit number} \State hundreds \(\gets \lfloor n / 100 \rfloor\) \State sayPreNumber(hundreds) - \State sayAftNumber(\(n - 100 \times \text{hundreds}\) + \State sayAftNumber(\(n - 100 \times \text{hundreds}\)) \EndIf +\EndFunction \end{algorithmic} \end{algorithm} Finally our main function sayNumber(\(n\)) goes thorugh all the possible cases.