created homework 1

This commit is contained in:
didier amyot committed 2018-08-22 20:37:56 -04:00
1 parent 79846caa4f
commit 15a7abd3d5
2 files changed
+112 -3

No files matched your search

+109
View File
@@ -0,0 +1,109 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The second homework is to explore the data located at \"https://gitlab.com/didiercrunch/honore-beaugrand/raw/master/resources/data/homework2/classes.edn\". The data is composed of the personal information of students attending three classes."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Question number 1\n",
"How many students is there in all three classes"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Question number 2\n",
"What is the age of the oldest/youngest student.\n",
"\n",
"> tip: [min](https://clojuredocs.org/clojure.core/min), [max](https://clojuredocs.org/clojure.core/min) and [apply](https://clojuredocs.org/clojure.core/apply)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Question number 3\n",
"What is the name of the oldest/youngest student?\n",
"\n",
"> tip: [min](https://clojuredocs.org/clojure.core/min), [max](https://clojuredocs.org/clojure.core/min) and [apply](https://clojuredocs.org/clojure.core/apply)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Question 4\n",
"\n",
"What is the average age in the school?\n",
"\n",
"> tip: [reduce](https://clojuredocs.org/clojure.core/reduce), [+](https://clojuredocs.org/clojure.core/+), [count](https://clojuredocs.org/clojure.core/count)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Question 5\n",
"\n",
"What is the proportion of girls and boys in the school?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Lein-Clojure",
"language": "clojure",
"name": "lein-clojure"
},
"language_info": {
"file_extension": ".clj",
"mimetype": "text/x-clojure",
"name": "clojure",
"version": "1.9.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
+3 -3
View File
@@ -1,4 +1,4 @@
[
{:name "class 1" :url "class1.edn"}
{:name "class 2" :url "class2.edn"}
{:name "class 3" :url "class3.edn"}]
{:name "class 1" :url "https://gitlab.com/didiercrunch/honore-beaugrand/raw/master/resources/data/homework2/class1.edn"}
{:name "class 2" :url "https://gitlab.com/didiercrunch/honore-beaugrand/raw/master/resources/data/homework2/class2.edn"}
{:name "class 3" :url "https://gitlab.com/didiercrunch/honore-beaugrand/raw/master/resources/data/homework2/class3.edn"}]