diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..5a324755 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.aux +*.fdb_latexmk +*.fls +*.log +*.synctex.gz +*.xdv diff --git a/NotProgramming/ESOEN/HW2/1A.png b/NotProgramming/ESOEN/HW2/1A.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/1A.png differ diff --git a/NotProgramming/ESOEN/HW2/1B.png b/NotProgramming/ESOEN/HW2/1B.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/1B.png differ diff --git a/NotProgramming/ESOEN/HW2/31.png b/NotProgramming/ESOEN/HW2/31.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/31.png differ diff --git a/NotProgramming/ESOEN/HW2/32.png b/NotProgramming/ESOEN/HW2/32.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/32.png differ diff --git a/NotProgramming/ESOEN/HW2/33.png b/NotProgramming/ESOEN/HW2/33.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/33.png differ diff --git a/NotProgramming/ESOEN/HW2/34.png b/NotProgramming/ESOEN/HW2/34.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/34.png differ diff --git a/NotProgramming/ESOEN/HW2/35.png b/NotProgramming/ESOEN/HW2/35.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/35.png differ diff --git a/NotProgramming/ESOEN/HW2/36.png b/NotProgramming/ESOEN/HW2/36.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/36.png differ diff --git a/NotProgramming/ESOEN/HW2/37.png b/NotProgramming/ESOEN/HW2/37.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/37.png differ diff --git a/NotProgramming/ESOEN/HW2/4.png b/NotProgramming/ESOEN/HW2/4.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/4.png differ diff --git a/NotProgramming/ESOEN/HW2/Class1_103.png b/NotProgramming/ESOEN/HW2/Class1_103.png new file mode 100644 index 00000000..043f04a1 Binary files /dev/null and b/NotProgramming/ESOEN/HW2/Class1_103.png differ diff --git a/NotProgramming/ESOEN/HW2/HW2.aux b/NotProgramming/ESOEN/HW2/HW2.aux index c496eabe..8ed2081e 100644 --- a/NotProgramming/ESOEN/HW2/HW2.aux +++ b/NotProgramming/ESOEN/HW2/HW2.aux @@ -2,12 +2,18 @@ \@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}{1}{}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}A dining philosopher is using a fork.}{1}{}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}A file is an ordinary file or a directory file. }{1}{}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}Files contain records.}{1}{}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {2.4}A polygon is composed of an ordered set of points. }{1}{}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {2.5}A person uses a computer language on a project. }{1}{}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {2.6}A route connects two cities }{1}{}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {2.7}Modems and keyboards are input/output devices. }{1}{}\protected@file@percent } -\gdef \@abspage@last{1} +\@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}{“John’s 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} diff --git a/NotProgramming/ESOEN/HW2/HW2.fdb_latexmk b/NotProgramming/ESOEN/HW2/HW2.fdb_latexmk index 060bb46b..be3bd0d0 100644 --- a/NotProgramming/ESOEN/HW2/HW2.fdb_latexmk +++ b/NotProgramming/ESOEN/HW2/HW2.fdb_latexmk @@ -1,18 +1,35 @@ # Fdb version 3 -["xdvipdfmx"] 1667653186 "HW2.xdv" "HW2.pdf" "HW2" 1667653186 - "HW2.xdv" 1667653186 9408 ed6fcbd2a23fce2a5fa2d215d2f02a64 "xelatex" +["xdvipdfmx"] 1667657560 "HW2.xdv" "HW2.pdf" "HW2" 1667657560 + "HW2.xdv" 1667657560 33812 ab9544d3548f861bb63510c83085a432 "xelatex" (generated) "HW2.pdf" -["xelatex"] 1667653185 "/home/kuhyx/Zlew/Studia/WUT_Computer_Science/NotProgramming/ESOEN/HW2/HW2.tex" "HW2.xdv" "HW2" 1667653186 - "/home/kuhyx/Zlew/Studia/WUT_Computer_Science/NotProgramming/ESOEN/HW2/HW2.tex" 1667653185 1094 4b200e9d3155af14ceb5aa91cd9c5138 "" +["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 "" "/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 "" + "/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg" 1650183167 1224 978390e9c2234eab29404bc21b268d1e "" + "/usr/share/texmf-dist/tex/latex/graphics-def/xetex.def" 1650183167 14363 d3c336f2f510c0b73629f44e987d2e6a "" + "/usr/share/texmf-dist/tex/latex/graphics/graphics.sty" 1650183167 18399 7e40f80366dffb22c0e7b70517db5cb4 "" + "/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty" 1650183167 7996 a8fb260d598dcaf305a7ae7b9c3e3229 "" + "/usr/share/texmf-dist/tex/latex/graphics/keyval.sty" 1650183167 2671 4de6781a30211fe0ea4c672e4a2a8166 "" + "/usr/share/texmf-dist/tex/latex/graphics/trig.sty" 1650183167 4009 187ea2dc3194cd5a76cd99a8d7a6c4d0 "" "/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 "" - "HW2.aux" 1667653186 1350 086026ea45cf03e87ebaf925d123d031 "xelatex" - "HW2.tex" 1667653185 1094 4b200e9d3155af14ceb5aa91cd9c5138 "" + "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 "" + "Class1_103.png" 1667655221 4661 76fac92a3a370a3059fed3ef3ec0c0f2 "" + "HW2.aux" 1667657560 2077 83146d5596cd248c068d285981c82852 "xelatex" + "HW2.tex" 1667657559 4128 6b210fab73ef39d12aa3558edc3455d7 "" (generated) "HW2.aux" "HW2.log" diff --git a/NotProgramming/ESOEN/HW2/HW2.fls b/NotProgramming/ESOEN/HW2/HW2.fls index 6d954b5b..676f225c 100644 --- a/NotProgramming/ESOEN/HW2/HW2.fls +++ b/NotProgramming/ESOEN/HW2/HW2.fls @@ -18,6 +18,58 @@ INPUT /usr/share/texmf-dist/tex/latex/base/size12.clo INPUT /usr/share/texmf-dist/tex/latex/base/size12.clo INPUT /usr/share/texmf-dist/tex/latex/base/size12.clo INPUT /usr/share/texmf-dist/tex/latex/base/size12.clo +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/keyval.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/graphics.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics/trig.sty +INPUT /usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg +INPUT /usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg +INPUT /usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg +INPUT /usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg +INPUT /usr/share/texmf-dist/tex/latex/graphics-def/xetex.def +INPUT /usr/share/texmf-dist/tex/latex/graphics-def/xetex.def +INPUT /usr/share/texmf-dist/tex/latex/graphics-def/xetex.def +INPUT /usr/share/texmf-dist/tex/latex/graphics-def/xetex.def INPUT /usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def INPUT /usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def INPUT /usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def @@ -37,5 +89,28 @@ 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 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 ./Class1_103.png +INPUT ./Class1_103.png +INPUT Class1_103.png +INPUT ./4.png +INPUT 4.png INPUT HW2.aux diff --git a/NotProgramming/ESOEN/HW2/HW2.log b/NotProgramming/ESOEN/HW2/HW2.log index 1bf19e5a..6e935550 100644 --- a/NotProgramming/ESOEN/HW2/HW2.log +++ b/NotProgramming/ESOEN/HW2/HW2.log @@ -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 13:59 +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 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. @@ -22,6 +22,24 @@ File: size12.clo 2021/10/04 v1.4n Standard LaTeX file (size option) \abovecaptionskip=\skip47 \belowcaptionskip=\skip48 \bibindent=\dimen138 +) (/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty +Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR) + (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty +Package: keyval 2014/10/28 v1.15 key=value parser (DPC) +\KV@toks@=\toks16 +) (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty +Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR) + (/usr/share/texmf-dist/tex/latex/graphics/trig.sty +Package: trig 2021/08/11 v1.11 sin cos tan (DPC) +) (/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg +File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration +) +Package graphics Info: Driver file: xetex.def on input line 107. + (/usr/share/texmf-dist/tex/latex/graphics-def/xetex.def +File: xetex.def 2022/04/12 v5.0l Graphics/color driver for xetex +)) +\Gin@req@height=\dimen139 +\Gin@req@width=\dimen140 ) (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def File: l3backend-xetex.def 2022-04-14 L3 backend support: XeTeX \l__color_backend_stack_int=\count189 @@ -54,16 +72,46 @@ 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. - [1 -] (./HW2.aux) ) +Underfull \hbox (badness 10000) in paragraph at lines 7--8 + + [] + +File: 1A.png Graphic file (type bmp) +<1A.png> +File: 1B.png Graphic file (type bmp) +<1B.png> +[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> +File: Class1_103.png Graphic file (type bmp) + + [3] +File: 4.png Graphic file (type bmp) +<4.png> + [4] (./HW2.aux) ) Here is how much of TeX's memory you used: - 482 strings out of 476156 - 10214 string characters out of 5814963 - 311701 words of memory out of 5000000 - 21329 multiletter control sequences out of 15000+600000 + 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 - 35i,5n,38p,340b,107s stack positions out of 5000i,500n,10000p,200000b,80000s + 55i,5n,62p,462b,109s stack positions out of 5000i,500n,10000p,200000b,80000s -Output written on HW2.xdv (1 page, 9408 bytes). +Output written on HW2.xdv (4 pages, 33812 bytes). diff --git a/NotProgramming/ESOEN/HW2/HW2.pdf b/NotProgramming/ESOEN/HW2/HW2.pdf index 1bb23353..4ce94d19 100644 Binary files a/NotProgramming/ESOEN/HW2/HW2.pdf and b/NotProgramming/ESOEN/HW2/HW2.pdf differ diff --git a/NotProgramming/ESOEN/HW2/HW2.synctex.gz b/NotProgramming/ESOEN/HW2/HW2.synctex.gz index 760d8ad7..3bcebb4a 100644 Binary files a/NotProgramming/ESOEN/HW2/HW2.synctex.gz and b/NotProgramming/ESOEN/HW2/HW2.synctex.gz differ diff --git a/NotProgramming/ESOEN/HW2/HW2.tex b/NotProgramming/ESOEN/HW2/HW2.tex index ab12f0e4..0bdf9cb8 100644 --- a/NotProgramming/ESOEN/HW2/HW2.tex +++ b/NotProgramming/ESOEN/HW2/HW2.tex @@ -1,12 +1,21 @@ \documentclass[12pt]{article} - +\usepackage{graphicx} \begin{document} \section{Task 1} \subsection{Task A} +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} \subsection{Task B} +Propose different ways of modelling of a student authorization (different diagrams). \\ +\includegraphics[width=\textwidth]{1B} + +\newpage \section{Task 2} Categorize the following relationships into \textbf{generalization}, \textbf{aggregation}, or \textbf{association}. Draw an appropriate \textbf{class diagram}. There could be more than one solution if applicable. @@ -14,17 +23,51 @@ 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} \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} \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} + \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} \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} \subsection{A route connects two cities } +This is \textbf{association}, cities are associated through route. +\\ \includegraphics[width=\textwidth]{36} + \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} +\section{Task 3} +Are the following sentences consistent with the given class diagram (Explain)? +\\ +\includegraphics[width=\textwidth]{Class1_103.png} + +\paragraph{“John’s car has 10 wheels, including the spares.” } +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. + +\paragraph{Draw an exemplary object diagram for the class diagram. } +\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} + \end{document} \ No newline at end of file diff --git a/NotProgramming/ESOEN/HW2/HW2.xdv b/NotProgramming/ESOEN/HW2/HW2.xdv index b6b25282..3ca263c1 100644 Binary files a/NotProgramming/ESOEN/HW2/HW2.xdv and b/NotProgramming/ESOEN/HW2/HW2.xdv differ