-
Notifications
You must be signed in to change notification settings - Fork 18
/
units.ts
98 lines (95 loc) · 2.75 KB
/
units.ts
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
import { Problem } from "./calc";
// Convert 92 miles per hour to meters per second.
// Convert 2021 pounds to kilograms.
// Convert 1000 millimeters to meters.
// Convert 5000 joules to calories.
// Convert 1000 pascals to atmospheres.
// Convert 1000 meters to kilometers.
// Convert 1000 grams to kilograms.
// Convert 1000 milliliters to liters.
// Convert 1313 newtons per square meter to pounds per square inch.
// Convert 1000 watts to horsepower.
function unitConversionCalc(): Problem[] {
return [
{
id: `units-0001`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 92 miles per hour to meters per second. Answer using nearest whole number.`,
expected: "41",
},
{
id: `units-0002`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 92 miles per hour to meters per second. Answer to one decimal place.`,
expected: "41.1",
},
{
id: `units-0003`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 92 miles per hour to meters per second. Answer to two decimal places.`,
expected: "41.13",
},
{
id: `units-0004`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 1004 millimeters to meters.`,
expected: "1.004 (meters)",
},
{
id: `units-0005`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 1313 newtons per square meter to pounds per square inch. Answer to two decimal places.`,
expected: "0.19",
},
{
id: `units-0006`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 1313000 newtons per square meter to pounds per square inch. Answer to two decimal places.`,
expected: "190.43",
},
{
id: `units-0007`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 7482 joules to calories. Answer to nearest calorie.`,
expected: "1788",
},
{
id: `units-0008`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 7482 joules to calories. Answer to one decimal places.`,
expected: "1788.2",
},
{
id: `units-0009`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 7482 joules to calories. Answer to two decimal places.`,
expected: "1788.24",
},
{
id: `units-0010`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 85.6C to Farenheit. Answer to two decimal places.`,
expected: "186.08",
},
{
id: `units-0011`,
grade: `8`,
kind: `unit conversions`,
question: `Convert 85.63C to Farenheit. Answer to three decimal places.`,
expected: "186.134",
},
];
}
export function getProblems() {
return [...unitConversionCalc()];
}