forked from LaunchCodeEducation/javascript-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectsStudio02.js
More file actions
58 lines (48 loc) · 1.14 KB
/
Copy pathObjectsStudio02.js
File metadata and controls
58 lines (48 loc) · 1.14 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
// Code your orbitCircumference function here:
// Code your missionDuration function here:
// Copy/paste your selectRandomEntry function here:
// Code your oxygenExpended function here:
// Candidate data & crew array.
let candidateA = {
'name':'Gordon Shumway',
'species':'alf',
'mass':90,
'o2Used':function(hrs){return 0.035*hrs},
'astronautID':414
};
let candidateB = {
'name':'Lassie',
'species':'dog',
'mass':19.1,
'o2Used':function(hrs){return 0.030*hrs},
'astronautID':503
};
let candidateC = {
'name':'Jonsey',
'species':'cat',
'mass':3.6,
'o2Used':function(hrs){return 0.022*hrs},
'astronautID':796
};
let candidateD = {
'name':'Paddington',
'species':'bear',
'mass':31.8,
'o2Used':function(hrs){return 0.047*hrs},
'astronautID':291
};
let candidateE = {
'name':'Pete',
'species':'tortoise',
'mass':417,
'o2Used':function(hrs){return 0.010*hrs},
'astronautID':599
};
let candidateF = {
'name':'Hugs',
'species':'ball python',
'mass':2.3,
'o2Used':function(hrs){return 0.018*hrs},
'astronautID':890
};
let crew = [candidateA,candidateC,candidateE];