Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually Graded Questions: PDF Created #19

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 70 additions & 19 deletions hw/hw01/hw01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"outputs": [],
"source": [
"# The pip install can take a minute\n",
"%pip install -q urllib3<2.0 otter-grader==4.4.1 datascience ipywidgets\n",
"%pip install -q urllib3<2.0 otter-grader==5.5.0 datascience ipywidgets\n",
"import pyodide_http\n",
"pyodide_http.patch_all()\n",
"\n",
Expand Down Expand Up @@ -62,7 +62,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-4",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"<!-- BEGIN QUESTION -->\n",
"\n",
Expand All @@ -88,7 +91,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-6",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"<!-- END QUESTION -->\n",
"\n",
Expand Down Expand Up @@ -135,7 +141,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-9",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"**Question 1.** Around how many periods are there in the chapter with the most characters? Assign either 1, 2, 3, 4, or 5 to the name `characters_q1` below. **(4 Points)**\n",
"\n",
Expand Down Expand Up @@ -185,7 +194,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-13",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"**Question 2.** Which of the following chapters has the most characters per period? Assign either 1, 2, or 3 to the name `characters_q2` below. **(4 Points)**\n",
"\n",
Expand Down Expand Up @@ -268,7 +280,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-21",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"Choose the best explanation of what's wrong with the code, and then assign 1, 2, 3, or 4 to `names_q1` below to indicate your answer. **(4 Points)**\n",
"\n",
Expand Down Expand Up @@ -332,7 +347,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-26",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"Choose the best explanation of what's wrong with the code and assign 1, 2, 3, or 4 to `names_q2` below to indicate your answer. **(4 Points)**\n",
"\n",
Expand Down Expand Up @@ -397,7 +415,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-31",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"What is `y` after running this cell, and why? Choose the best explanation and assign 1, 2, 3, or 4 to `names_q3` below to indicate your answer. **(4 Points)**\n",
"\n",
Expand Down Expand Up @@ -461,7 +482,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-36",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"**Question 1.** Suppose you want to find the **biggest** absolute difference between the number of degree recipients in the two years, among the three majors.\n",
"\n",
Expand Down Expand Up @@ -498,7 +522,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-39",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"**Question 2.** Which of the three majors had the **smallest** absolute difference? Assign `smallest_change_major` to 1, 2, or 3 where each number corresponds to the following major:\n",
"\n",
Expand Down Expand Up @@ -541,7 +568,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-42",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"**Question 3.** For each major, define the \u201crelative change\u201d to be the following: $\\large{\\frac{\\text{absolute difference}}{\\text{value in 2008-2009}} * 100}$ \n",
"\n",
Expand Down Expand Up @@ -581,7 +611,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-45",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"**Question 4.** Assign `biggest_rel_change_major` to 1, 2, or 3 where each number corresponds to to the following: \n",
"\n",
Expand Down Expand Up @@ -638,7 +671,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-50",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"<!-- BEGIN QUESTION -->\n",
"\n",
Expand All @@ -656,7 +692,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-52",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"<!-- END QUESTION -->\n",
"\n",
Expand All @@ -678,7 +717,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-54",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"<!-- END QUESTION -->\n",
"\n",
Expand All @@ -698,7 +740,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-56",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"<!-- END QUESTION -->\n",
"\n",
Expand All @@ -720,7 +765,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-58",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"<!-- END QUESTION -->\n",
"\n",
Expand All @@ -730,7 +778,10 @@
{
"cell_type": "markdown",
"id": "cell-hw01-59",
"metadata": {},
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"The Reverend Henry Whitehead was skeptical of John Snow\u2019s conclusion about the Broad Street pump. After the Broad Street cholera epidemic ended, Whitehead set about trying to prove Snow wrong. (The history of the event is detailed [here](http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1034367/pdf/medhist00183-0026.pdf).)\n",
"\n",
Expand Down Expand Up @@ -819,7 +870,7 @@
"outputs": [],
"source": [
"# Save your notebook first, then run this cell to export your submission.\n",
"grader.export(pdf=False, run_tests=True)"
"grader.export(run_tests=True)"
]
},
{
Expand Down
Loading
Loading