-
Notifications
You must be signed in to change notification settings - Fork 5
/
coursework2.fsx
42 lines (30 loc) · 1.37 KB
/
coursework2.fsx
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
(*
ITT8060 -- Advanced Programming 2013
Department of Computer Science
Tallinn University of Technology
------------------------------------
Coursework 2: Using .Net libraries
------------------------------------
Name:
Student ID:
------------------------------------
Answer the questions below. You answers to questions 1--8 should be
correct F# code written after the question. This file is an F#
script file, it should be possible to load the whole file at
once. If you can't then you have introduced a syntax error
somewhere.
This coursework will be graded. Please send the completed coursework
including your name and student ID in the comments by e-mail to
[email protected] by Friday, September 27.
*)
// 1. Write code to load data from the file coursework2.data.
// The file is comma separated and contains population data
// of towns and communes (vald) in different counties (maakond) of Estonia.
// 2. Make functions that sum the populations of towns and communes
// in each county.
// 3. Create a histogram chart where you show the percentages of total
// population living in each county.
// *** Bonus question ***
// 4. Extend the histogram in such a way that each bar is divided into two
// parts, representing the appropriate proportion of people living in
// towns and counties.