feat: finish esoen hw

This commit is contained in:
kuchyx 2022-11-06 22:05:00 +01:00
parent 843ff3c906
commit b35d21c74f
29 changed files with 161 additions and 116 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

View File

@ -2,18 +2,17 @@
\@writefile{toc}{\contentsline {section}{\numberline {1}Task 1}{1}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {1.1}Task A}{1}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {1.2}Task B}{1}{}\protected@file@percent }
\@writefile{toc}{\contentsline {section}{\numberline {2}Task 2}{2}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}A dining philosopher is using a fork.}{2}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}A file is an ordinary file or a directory file. }{2}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}Files contain records.}{2}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.4}A polygon is composed of an ordered set of points. }{3}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.5}A person uses a computer language on a project. }{3}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.6}A route connects two cities }{3}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.7}Modems and keyboards are input/output devices. }{3}{}\protected@file@percent }
\@writefile{toc}{\contentsline {section}{\numberline {3}Task 3}{4}{}\protected@file@percent }
\@writefile{toc}{\contentsline {paragraph}{“Johns car has 10 wheels, including the spares.” }{4}{}\protected@file@percent }
\@writefile{toc}{\contentsline {paragraph}{“Each car has at least one wheel.” }{4}{}\protected@file@percent }
\@writefile{toc}{\contentsline {paragraph}{“In my car, there are two wheels on the left side and two wheels on the right side” }{4}{}\protected@file@percent }
\@writefile{toc}{\contentsline {paragraph}{Draw an exemplary object diagram for the class diagram. }{4}{}\protected@file@percent }
\@writefile{toc}{\contentsline {section}{\numberline {4}Task 4}{4}{}\protected@file@percent }
\gdef \@abspage@last{4}
\@writefile{toc}{\contentsline {section}{\numberline {2}Task 2}{3}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}A dining philosopher is using a fork.}{3}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}A file is an ordinary file or a directory file. }{3}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}Files contain records.}{3}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.4}A polygon is composed of an ordered set of points. }{4}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.5}A person uses a computer language on a project. }{4}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.6}A route connects two cities }{4}{}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {2.7}Modems and keyboards are input/output devices. }{5}{}\protected@file@percent }
\@writefile{toc}{\contentsline {section}{\numberline {3}Task 3}{5}{}\protected@file@percent }
\@writefile{toc}{\contentsline {paragraph}{“Johns car has 10 wheels, including the spares.” }{5}{}\protected@file@percent }
\@writefile{toc}{\contentsline {paragraph}{“Each car has at least one wheel.” }{5}{}\protected@file@percent }
\@writefile{toc}{\contentsline {paragraph}{“In my car, there are two wheels on the left side and two wheels on the right side” }{5}{}\protected@file@percent }
\@writefile{toc}{\contentsline {section}{\numberline {4}Task 4}{7}{}\protected@file@percent }
\gdef \@abspage@last{7}

View File

@ -1,10 +1,14 @@
# Fdb version 3
["xdvipdfmx"] 1667657560 "HW2.xdv" "HW2.pdf" "HW2" 1667657560
"HW2.xdv" 1667657560 33812 ab9544d3548f861bb63510c83085a432 "xelatex"
["xdvipdfmx"] 1667768597 "HW2.xdv" "HW2.pdf" "HW2" 1667768597
"HW2.xdv" 1667768597 36324 eee6b9f4be8427a510057482f0f3a40c "xelatex"
(generated)
"HW2.pdf"
["xelatex"] 1667657560 "/home/kuhyx/Zlew/Studia/WUT_Computer_Science/NotProgramming/ESOEN/HW2/HW2.tex" "HW2.xdv" "HW2" 1667657560
"/home/kuhyx/Zlew/Studia/WUT_Computer_Science/NotProgramming/ESOEN/HW2/HW2.tex" 1667657559 4128 6b210fab73ef39d12aa3558edc3455d7 ""
["xelatex"] 1667768596 "/home/kuhyx/Zlew/Studia/WUT_Computer_Science/NotProgramming/ESOEN/HW2/HW2.tex" "HW2.xdv" "HW2" 1667768597
"/home/kuhyx/Zlew/Studia/WUT_Computer_Science/NotProgramming/ESOEN/HW2/HW2.tex" 1667768596 4301 4e901d84253701d932a6fe2f6d73f7b1 ""
"/usr/share/texmf-dist/fonts/map/fontname/texfonts.map" 1650183167 3524 cb3e574dea2d1052e39280babc910dc8 ""
"/usr/share/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm" 1650183167 1524 4414a8315f39513458b80dfc63bff03a ""
"/usr/share/texmf-dist/fonts/tfm/public/cm/cmr12.tfm" 1650183167 1288 655e228510b4c2a1abe905c368440826 ""
"/usr/share/texmf-dist/fonts/tfm/public/cm/cmsy10.tfm" 1650183167 1124 6c73e740cf17375f03eec0ee63599741 ""
"/usr/share/texmf-dist/tex/latex/base/article.cls" 1650183167 20144 8a7de377ae7a11ee924a7499611f5a9d ""
"/usr/share/texmf-dist/tex/latex/base/size12.clo" 1650183167 8449 bc7344e882df4d7e51c046514dee83e4 ""
"/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd" 1650183167 2430 06a89bcded389391906798ea7a3f3aaa ""
@ -17,19 +21,20 @@
"/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def" 1650183167 35763 558b6bb076dfa9b058fe5c58dc6e0434 ""
"/usr/share/texmf-dist/web2c/texmf.cnf" 1650183167 39911 2da6c67557ec033436fe5418a70a8a61 ""
"/var/lib/texmf/web2c/xetex/xelatex.fmt" 1667608630 5825165 3134581dd7c4dda880f963204bf37269 ""
"1A.png" 1667655927 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"1B.png" 1667655944 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"31.png" 1667656042 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"32.png" 1667656049 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"33.png" 1667656053 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"34.png" 1667656051 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"35.png" 1667656052 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"36.png" 1667656050 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"37.png" 1667656049 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"4.png" 1667656171 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"1A.pdf" 1667766361 24964 1808848d8de800365f5d13558afa89ac ""
"1B.pdf" 1667766455 26924 747862487589a6108d5e0847631dc9a0 ""
"31.pdf" 1667767150 15685 f64f8b9cb8d1c8815646d1be30d119d9 ""
"32.pdf" 1667767307 17835 0356d3bba45f9dd6cca234c741b8ef05 ""
"33.pdf" 1667767307 15188 fe6e86f0f0c299aba7e4390890796924 ""
"34.pdf" 1667767150 25038 6a98a92f3df888e91e0ee3b834ef403a ""
"35.pdf" 1667767150 26538 e341cf1e4809f289bbf46423a6d826d1 ""
"36.pdf" 1667767150 22729 bfbeba7fc8c1e2e722da110513d7ab2d ""
"37.pdf" 1667767150 19752 c04507a8854feb3218c5f961c1a0fcfc ""
"4.pdf" 1667767731 19140 eccbff8de4dac784caf7fcb1c9400e65 ""
"5.pdf" 1667768521 44159 3ff5f82d3ee403d3adb69122b9cb1f05 ""
"Class1_103.png" 1667655221 4661 76fac92a3a370a3059fed3ef3ec0c0f2 ""
"HW2.aux" 1667657560 2077 83146d5596cd248c068d285981c82852 "xelatex"
"HW2.tex" 1667657559 4128 6b210fab73ef39d12aa3558edc3455d7 ""
"HW2.aux" 1667768597 1946 2688f2e1a5ddaf4495974f36d53f57d6 "xelatex"
"HW2.tex" 1667768596 4301 4e901d84253701d932a6fe2f6d73f7b1 ""
(generated)
"HW2.aux"
"HW2.log"

View File

@ -89,28 +89,45 @@ INPUT /usr/share/texmf-dist/tex/latex/base/ts1cmr.fd
INPUT /usr/share/texmf-dist/tex/latex/base/ts1cmr.fd
INPUT /usr/share/texmf-dist/tex/latex/base/ts1cmr.fd
INPUT /usr/share/texmf-dist/tex/latex/base/ts1cmr.fd
INPUT ./1A.png
INPUT 1A.png
INPUT ./1B.png
INPUT 1B.png
INPUT /usr/share/texmf-dist/fonts/map/fontname/texfonts.map
INPUT /usr/share/texmf-dist/fonts/tfm/public/cm/cmr12.tfm
INPUT /usr/share/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm
INPUT /usr/share/texmf-dist/fonts/tfm/public/cm/cmsy10.tfm
INPUT ./1A.pdf
INPUT ./1A.pdf
INPUT 1A.pdf
INPUT ./1B.pdf
INPUT ./1B.pdf
INPUT 1B.pdf
OUTPUT HW2.xdv
INPUT ./31.png
INPUT 31.png
INPUT ./32.png
INPUT 32.png
INPUT ./33.png
INPUT 33.png
INPUT ./34.png
INPUT 34.png
INPUT ./35.png
INPUT 35.png
INPUT ./36.png
INPUT 36.png
INPUT ./37.png
INPUT 37.png
INPUT ./31.pdf
INPUT ./31.pdf
INPUT 31.pdf
INPUT ./32.pdf
INPUT ./32.pdf
INPUT 32.pdf
INPUT ./33.pdf
INPUT ./33.pdf
INPUT 33.pdf
INPUT ./34.pdf
INPUT ./34.pdf
INPUT 34.pdf
INPUT ./35.pdf
INPUT ./35.pdf
INPUT 35.pdf
INPUT ./36.pdf
INPUT ./36.pdf
INPUT 36.pdf
INPUT ./37.pdf
INPUT ./37.pdf
INPUT 37.pdf
INPUT ./Class1_103.png
INPUT ./Class1_103.png
INPUT Class1_103.png
INPUT ./4.png
INPUT 4.png
INPUT ./4.pdf
INPUT ./4.pdf
INPUT 4.pdf
INPUT ./5.pdf
INPUT ./5.pdf
INPUT 5.pdf
INPUT HW2.aux

View File

@ -1,4 +1,4 @@
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022/Arch Linux) (preloaded format=xelatex 2022.11.5) 5 NOV 2022 15:12
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022/Arch Linux) (preloaded format=xelatex 2022.11.5) 6 NOV 2022 22:03
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
@ -52,66 +52,83 @@ File: l3backend-xetex.def 2022-04-14 L3 backend support: XeTeX
) (./HW2.aux)
\openout1 = `HW2.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 3.
LaTeX Font Info: Trying to load font information for TS1+cmr on input line 3.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5.
LaTeX Font Info: Trying to load font information for TS1+cmr on input line 5.
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2019/12/16 v2.5j Standard LaTeX font definitions
)
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <14.4> on input line 6.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 6.
Underfull \hbox (badness 10000) in paragraph at lines 7--8
Underfull \hbox (badness 10000) in paragraph at lines 10--11
[]
File: 1A.png Graphic file (type bmp)
<1A.png>
File: 1B.png Graphic file (type bmp)
<1B.png>
File: 1A.pdf Graphic file (type pdf)
<use 1A.pdf>
File: 1B.pdf Graphic file (type pdf)
<use 1B.pdf>
[1
]
File: 31.png Graphic file (type bmp)
<31.png>
File: 32.png Graphic file (type bmp)
<32.png>
File: 33.png Graphic file (type bmp)
<33.png>
File: 34.png Graphic file (type bmp)
<34.png>
[2]
File: 35.png Graphic file (type bmp)
<35.png>
File: 36.png Graphic file (type bmp)
<36.png>
File: 37.png Graphic file (type bmp)
<37.png>
] [2]
File: 31.pdf Graphic file (type pdf)
<use 31.pdf>
File: 32.pdf Graphic file (type pdf)
<use 32.pdf>
File: 33.pdf Graphic file (type pdf)
<use 33.pdf>
File: 34.pdf Graphic file (type pdf)
<use 34.pdf>
[3]
File: 35.pdf Graphic file (type pdf)
<use 35.pdf>
File: 36.pdf Graphic file (type pdf)
<use 36.pdf>
[4]
File: 37.pdf Graphic file (type pdf)
<use 37.pdf>
File: Class1_103.png Graphic file (type bmp)
<Class1_103.png>
[3]
File: 4.png Graphic file (type bmp)
<4.png>
[4] (./HW2.aux) )
Here is how much of TeX's memory you used:
1124 strings out of 476156
19195 string characters out of 5814963
317357 words of memory out of 5000000
21943 multiletter control sequences out of 15000+600000
469307 words of font info for 34 fonts, out of 8000000 for 9000
1348 hyphenation exceptions out of 8191
55i,5n,62p,462b,109s stack positions out of 5000i,500n,10000p,200000b,80000s
[5]
Underfull \hbox (badness 10000) in paragraph at lines 67--68
Output written on HW2.xdv (4 pages, 33812 bytes).
[]
File: 4.pdf Graphic file (type pdf)
<use 4.pdf>
Overfull \hbox (18.0pt too wide) in paragraph at lines 69--70
[][]
[]
[6]
File: 5.pdf Graphic file (type pdf)
<use 5.pdf>
[7] (./HW2.aux) )
Here is how much of TeX's memory you used:
1048 strings out of 476156
18530 string characters out of 5814963
317372 words of memory out of 5000000
21857 multiletter control sequences out of 15000+600000
470228 words of font info for 38 fonts, out of 8000000 for 9000
1348 hyphenation exceptions out of 8191
55i,6n,62p,462b,191s stack positions out of 5000i,500n,10000p,200000b,80000s
Output written on HW2.xdv (7 pages, 36324 bytes).

Binary file not shown.

View File

@ -1,6 +1,9 @@
\documentclass[12pt]{article}
\usepackage{graphicx}
\title{ESOEN Tutorial 2 HW}
\author{Krzysztof Rudnicki, 307585}
\begin{document}
\maketitle
\section{Task 1}
\subsection{Task A}
@ -8,11 +11,11 @@ Prepare a use case diagram for the following description: \\
"A student can check a timetable of the lessons and its own results in the university system. To use these services the student needs to authorize in the system. The student can add its comment to the timetable, if necessary."
\\
\includegraphics[width=\textwidth]{1A}
\includegraphics[width=\textwidth]{1A.pdf}
\subsection{Task B}
Propose different ways of modelling of a student authorization (different diagrams). \\
\includegraphics[width=\textwidth]{1B}
\includegraphics[width=\textwidth]{1B.pdf}
\newpage
@ -23,31 +26,31 @@ Categorize the following relationships into \textbf{generalization}, \textbf{ag
\subsection{A dining philosopher is using a fork.}
Dining philosopher is using \textbf{exactly} one fork and one fork is used \textbf{exactly} by one philosopher. \\
This is \textbf{association}, this is not aggregation as fork is not a part of philosopher, neither philosopher part of fork, and this is not generalization as philosopher is not a kind of fork and fork is not a kind of philosopher.
\\ \includegraphics[width=\textwidth]{31}
\\ \includegraphics[width=\textwidth]{31.pdf}
\subsection{A file is an ordinary file or a directory file. }
This is \textbf{generalization}, ordinary file is a kind of file, also directory is a kind of file, this is not aggregation as ordinary/directory file is not part of file.
\\ \includegraphics[width=\textwidth]{32}
\\ \includegraphics[width=\textwidth]{32.pdf}
\subsection{Files contain records.}
This is \textbf{aggregation}, records are part of files, this is not generalization as records are not kind of file.
\\ \includegraphics[width=\textwidth]{33}
\\ \includegraphics[width=\textwidth]{33.pdf}
\subsection{A polygon is composed of an ordered set of points. }
This is \textbf{aggregation}, points are part of polygon, this is not generalization as points are not kind of polygon.
\\ \includegraphics[width=\textwidth]{34}
\\ \includegraphics[width=\textwidth]{34.pdf}
\subsection{A person uses a computer language on a project. }
This is \textbf{association}, this is not aggregation as computer language is not a part of person, neither person part of computer language, and this is not generalization as person is not a kind of computer language and computer language is not a kind of person.
\\ \includegraphics[width=\textwidth]{35}
\\ \includegraphics[width=\textwidth]{35.pdf}
\subsection{A route connects two cities }
This is \textbf{association}, cities are associated through route.
\\ \includegraphics[width=\textwidth]{36}
\\ \includegraphics[width=\textwidth]{36.pdf}
\newpage
\subsection{Modems and keyboards are input/output devices. }
This is \textbf{generalization}, Modems and keyboards are kind of input/output devices, this is not aggregation as modems/keyboards are not part of input/output devices
\\ \includegraphics[width=\textwidth]{37}
\\ \includegraphics[width=\textwidth]{37.pdf}
\section{Task 3}
Are the following sentences consistent with the given class diagram (Explain)?
\\
@ -58,15 +61,19 @@ It is \textbf{not consistent} as there is maximum of \textbf{8} wheels on a car.
\paragraph{“Each car has at least one wheel.” }
It is \textbf{consistent} and true always, as each car has minimum of \textbf{3} wheels on a car
\paragraph{“In my car, there are two wheels on the left side and two wheels on the right side” }
It is \textbf{consistent}, this particular car contains wheels in amount between minimum and maximum, we do not care about the position of those wheels in our class diagram.
It is \textbf{consistent}, this particular car contains wheels in amount between minimum and maximum, we do not care about the position of those wheels in our class diagram. \newpage
\paragraph{Draw an exemplary object diagram for the class diagram. }
Draw an exemplary object diagram for the class diagram. \\
\includegraphics[width=\textwidth]{4.pdf}
\newpage
\section{Task 4}
Prepare a class diagram based on the following description of a card-playing program.
\\
“Deck, hand, discard pile, and draw pile are collection of cards. The initial size of the hand depends on the type of game. The collection of cards consists of an ordered set of cards. A card can be displayed and discarded. Each card is characterized by its suit and rank. At the beginning of the game the collection of cards is initialized. The cards on the deck can be shuffled.”
\\
\includegraphics[width=\textwidth]{4}
\includegraphics[width=\textwidth]{5.pdf}

Binary file not shown.