-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
214 lines (160 loc) · 8.07 KB
/
main.tex
File metadata and controls
214 lines (160 loc) · 8.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% fphw Assignment
% LaTeX Template
% Version 1.0 (27/04/2019)
%
% This template originates from:
% https://www.LaTeXTemplates.com
%
% Authors:
% Class by Felipe Portales-Oliva (f.portales.oliva@gmail.com) with template
% content and modifications by Vel (vel@LaTeXTemplates.com)
% IU format modified by Raymond Tan (raytan@iu.edu)
%
%Template (this file) License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[
12pt, % Default font size, values between 10pt-12pt are allowed
%letterpaper, % Uncomment for US letter paper size
%spanish, % Uncomment for Spanish
]{fphw}
% Template-specific packages
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage{mathpazo} % Use the Palatino font
\usepackage{graphicx} % Required for including images
\usepackage{booktabs} % Required for better horizontal rules in tables
\usepackage{listings} % Required for insertion of code
\usepackage{enumerate} % To modify the enumerate environment
\author{Indiana University}
%----------------------------------------------------------------------------------------
% ASSIGNMENT INFORMATION
%----------------------------------------------------------------------------------------
\begin{document}
\begin{titlepage}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\begin{figure}
\centering
\includegraphics[width=3in]{/Users/ray/Downloads/IUB.png}\\[1cm]
\end{figure}
\center
\quad\\[1.5cm]
\textsl{\Large Indiana University Bloomington}\\[0.5cm]
\textsl{\large School of Informatics, Computing, and Engineering}\\[0.5cm]
\makeatletter
\HRule \\[0.6cm]
{\huge \bfseries{Project Title}}\\[0.4cm]
\HRule \\[1.5cm]
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
\textup{Raymond Tan}
\end{flushleft}
\end{minipage}
~
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisor:} \\
\textup{Dr Inna Kouper }
\end{flushright}
\end{minipage}\\[3cm]
\makeatother
{\large {An Assignment submitted for the IUB:}}\\[0.5cm]
{\large \emph{I-535: Management, Access, and use of Big and Complex Data}}\\[0.5cm]
{\large \today}\\[2cm]
\vfill
\end{titlepage}
%----------------------------------------------------------------------------------------
\title{System Engineering} % For Header Title
%----------------------------------------------------------------------------------------
% ASSIGNMENT CONTENT
%----------------------------------------------------------------------------------------
\cleardoublepage
\section{Question 1}
\begin{problem}
What is the airspeed velocity of an unladen swallow? Who knows?
\end{problem}
\begin{center}
\includegraphics[width=0.5\columnwidth]{swallow.jpg} % Example image
\end{center}
%------------------------------------------------
\subsection{Answer}
While this question leaves out the crucial element of the geographic origin of the swallow, according to Jonathan Corum, an unladen European swallow maintains a cruising airspeed velocity of \textbf{11 metres per second}, or \textbf{24 miles an hour}. The velocity of the corresponding African swallows requires further research as kinematic data is severely lacking for these species.
%----------------------------------------------------------------------------------------
\section{Question 2}
\begin{problem}
How much wood would a woodchuck chuck if a woodchuck could chuck wood?
\medskip
\begin{enumerate}[(\itshape a\normalfont)] % Sub-questions styled as italic letters
\item Suppose ``chuck" implies throwing.
\item Suppose ``chuck" implies vomiting.
\end{enumerate}
\end{problem}
%------------------------------------------------
\subsection{Answer}
\begin{enumerate}[(\itshape a\normalfont)] % Sub-questions styled as italic letters
\item According to the Associated Press (1988), a New York Fish and Wildlife technician named Richard Thomas calculated the volume of dirt in a typical 25--30 foot (7.6--9.1 m) long woodchuck burrow and had determined that if the woodchuck had moved an equivalent volume of wood, it could move ``about \textbf{700 pounds (320 kg)} on a good day, with the wind at his back".
\item A woodchuck can ingest 361.92 cm\textsuperscript{3} (22.09 cu in) of wood per day. Assuming immediate expulsion on ingestion with a 5\% retainment rate, a woodchuck could chuck \textbf{343.82 cm\textsuperscript{3}} of wood per day.
\end{enumerate}
%----------------------------------------------------------------------------------------
\section{Question 3}
\begin{problem}
Type problem here
\end{problem}
%------------------------------------------------
\subsection{Answer}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie. Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl. Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
%----------------------------------------------------------------------------------------
\section{Question 4 (bonus marks)}
\begin{problem}
The table below shows the nutritional consistencies of two sausage types. Explain their relative differences given what you know about daily adult nutritional recommendations.
\bigskip
\begin{center}
\begin{tabular}{l l l}
\toprule
\textit{Per 50g} & Pork & Soy \\
\midrule
Energy & 760kJ & 538kJ\\
Protein & 7.0g & 9.3g\\
Carbohydrate & 0.0g & 4.9g\\
Fat & 16.8g & 9.1g\\
Sodium & 0.4g & 0.4g\\
Fibre & 0.0g & 1.4g\\
\bottomrule
\end{tabular}
\end{center}
\medskip
\end{problem}
%------------------------------------------------
\subsection{Answer}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie. Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl. Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
%----------------------------------------------------------------------------------------
\section{Question 5 (bonus marks)}
\begin{problem}
\lstinputlisting[
caption=Luftballons Perl Script, % Caption above the listing
label=lst:luftballons, % Label for referencing this listing
language=Perl, % Use Perl functions/syntax highlighting
frame=single, % Frame around the code listing
showstringspaces=false, % Don't put marks in string spaces
numbers=left, % Line numbers on left
numberstyle=\tiny, % Line numbers styling
]{luftballons.pl}
\begin{enumerate}
\item How many luftballons will be output by the Listing above?
\item Identify the regular expression in Listing and explain how it relates to the anti-war sentiments found in the rest of the script.
\end{enumerate}
\end{problem}
%------------------------------------------------
\subsection{Answer}
\begin{enumerate}
\item 99 luftballons.
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie. Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl. Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
\end{enumerate}
%----------------------------------------------------------------------------------------
\end{document}