Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arduino-block-course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stefan Gehr
arduino-block-course
Commits
0aca7a6d
Commit
0aca7a6d
authored
2 years ago
by
Stefan Gehr
Browse files
Options
Downloads
Patches
Plain Diff
fixing latex errors
parent
76480158
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#90187
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
report/src/report.tex
+4
-3
4 additions, 3 deletions
report/src/report.tex
with
4 additions
and
3 deletions
report/src/report.tex
+
4
−
3
View file @
0aca7a6d
...
...
@@ -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}
...
...
@@ -150,8 +150,9 @@ as we want to say ``zweihundert'' for \(n=200\) and not ``zweihundertnull''.
\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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment