Assignment Working 1/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
Task 1
Condition and lane miles
Year
Good
Fair
Poor
Condition
km
%
km
%
km
%
Index, %
2004
58.0
82.85
10.2
14.57
1.8
2.57
90.13
2005
54.0
77.14
13.0
18.57
3.0
4.28
86.42
2006
49.5
70.71
18.0
25.71
2.5
3.57
83.56
2007
45.0
64.28
22.0
31.42
3.0
4.28
79.99
2008
39.9
57
26.0
37.14
4.1
5.85
75.56
2009
35.3
50.42
29.7
42.42
5.0
7.14
71.63
2010
27.0
38.57
36.0
51.42
7.0
10
64.28
>> x=[2004:2010];
>> y=[82.86 14.57 2.57 90.14; 77.14 18.57 4.29 86.43; 70.71 25.71 3.57
83.57; 64.29 31.43 4.29 80; 57 37.14 5.86 75.57; 50.43 42.43 7.14 71.64;
38.57 51.43 10 64.29];
>> bar(x,y)
>> colormap summer
>> grid on
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 2/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
>> x=[2004:2010];
>> y=[82.86 14.57 2.57 90.14; 77.14 18.57 4.29 86.43; 70.71 25.71 3.57
83.57; 64.29 31.43 4.29 80; 57 37.14 5.86 75.57; 50.43 42.43 7.14 71.64;
38.57 51.43 10 64.29];
>> bar(x,y,'stack')
>> colormap summer
>> grid on
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 3/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
2004
>> x = [82.86 14.57 2.57];
>> pie(x)
>> colormap summer
2007
>> x = [64.29 31.43 4.29];
>> pie(x)
>> colormap summer
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 4/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
2010
>> x = [38.57 51.43 10];
>> pie(x)
>> colormap summer
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 5/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
>> x = [2004:2010];
>> y = [90.14; 86.43; 83.57; 80; 75.57; 71.64; 64.29];
>> bar(x, y, 'stack')
>> colormap summer
>> grid on
Software used is Matlab
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 6/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
Task 2
a)Cost vs Rooms
600000
500000
Cost($)
400000
300000
200000
100000
0
0
10
20
30
40
50
60
4
5
6
Rooms
Cost vs Stories
600000
500000
Cost($)
400000
300000
200000
100000
0
0
1
2
3
Stories
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 7/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
b) The equation of the regression line.
π¦ = π + ππ₯
So π = π¦Μ
− ππ₯Μ
π=
πxy
πxx
(∑π₯ )2
πxx = ∑π₯ −
π
2
πxy = ∑π₯π¦ −
πππ‘ππ (∑)
∑π₯∑π¦
π
π¦
420,000
435,000
218,000
191,000
146,000
402,000
518,000
340,000
248,000
470,000
237,000
3.625 × 106
π₯
40
45
16
30
28
32
41
34
19
56
26
367
π₯π¦
16,800,000
19,575,000
3,488,000
5,730,000
4,088,000
12,864,000
21,238,000
11,560,000
4,712,000
26,320,000
6,162,000
1.32537 × 108
π₯2
1600
2025
256
900
784
1024
1681
1156
361
3136
676
13599
∑π₯∑π¦ = 3.625 × 106 × 367
∑π₯∑π¦ = 1.330375 × 109
π = 11
So πxx = ∑π₯ 2 −
(∑π₯)2
π
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 8/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
(367)2
πxx = 13599 −
11
πxx = 1354.5454
πxy = ∑π₯π¦ −
∑π₯∑π¦
π
1.330375 × 109
πxy = 1.32537 × 10 −
11
8
πxy = 1.159382 × 107
π=
πxy
πxx
π = 8559.19498
π = π¦Μ
− ππ₯Μ
3.625 × 106
π¦Μ
=
= 329545.4545
11
367
π₯Μ
=
= 33.363636
11
π = 329545.4545 − 8559.19498 × 33.3636
Therefore,
π = 43979.5856
Line of regression for cost versus number of rooms =
π¦ = π + ππ₯
π¦ = 43979.586 + 8559.195π₯
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 9/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
600 000
y = 8559,2x + 43980
500 000
Cost $
400 000
300 000
200 000
100 000
0
10
20
30
40
50
60
Rooms
If we consider the cost of renovation as linear, in relationship to the number
of rooms.
The estimated line of regressionπ¦ ππ = 43979.586 + 8559.195π₯.
Therefore when we consider the fact that the first project to be studied has 48
rooms we substitute x as 48
π¦ = 43979.586 + 8559.195π₯
π¦ = 43979.586 + 8559.195 × 48
π¦ = 454,820.946 $
c) The line of regression for cost versus number of stories.
π¦ = π + ππ₯
So π = π¦Μ
− ππ₯Μ
π=
πxy
πxx
(∑π₯ )2
πxx = ∑π₯ −
π
2
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 10/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
πxy = ∑π₯π¦ −
∑π₯∑π¦
π
π¦
420,000
435,000
218,000
191,000
146,000
402,000
518,000
340,000
248,000
470,000
237,000
3.625 × 106
πππ‘ππ (∑)
π₯
4
5
3
4
3
4
5
3
3
4
3
41
π₯π¦
1,680,000
2,175,000
654,000
764,000
438,000
1,608,000
2,590,000
1,020,000
744,000
1,880,000
711,000
1.4264 × 107
π₯2
16
25
9
16
9
16
25
9
9
16
9
159
∑π₯∑π¦ = 41 × 3.625 × 106
∑π₯∑π¦ = 1.48625 × 108
π = 11
So,
(∑π₯ )2
πxx = ∑π₯ −
π
2
(41)2
πxx = 159 −
11
πxx = 6.18182
πxy = ∑π₯π¦ −
∑π₯∑π¦
π
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 11/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
1.48625 × 108
πxy = 1.4264 × 10 −
11
7
πxy = 752636.3636
π=
πxy
πxx
π = 121749.9642
π = π¦Μ
− ππ₯Μ
3.625 × 106
π¦Μ
=
= 329545.4545
11
41
π₯Μ
=
= 3.727273
11
π = 329545.4545 − 121749.9642 × 3.727273
So,
π = −124249.8998
Therefore, line of regression for cost versus number of stories is:
π¦ = π + ππ₯
π¦ = −124249.8998 + −121749.9642π₯
600 000
500 000
Cost $
400 000
y = 121750x - 124250
300 000
200 000
100 000
0
1
2
3
Stories
4
5
6
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 12/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
Task 3
Meanπ₯Μ
=
60 x 1 + 61 x 2 + 62 x 4 + 63 x 11 + 64 x 15 + 65 x 12 + 66 x 8 + 67 x 4 + 68 x 2 + 69 x 1
60
= 64.4
Life time in
week(π₯π )
60
61
62
63
64
65
66
67
68
69
Total
Deviation chosen
Number of
lamps (ππ )
1
2
4
11
15
12
8
4
2
1
60
π₯π − π₯Μ
-4.4
-3.4
-2.4
-1.4
-0.4
0.6
1.6
2.6
3.6
4.6
(π₯π − π₯Μ
)2
ππ (π₯π − π₯Μ
)2
19.36
11.56
5.76
1.96
0.16
0.36
2.56
6.76
12.96
21.16
19.36
23.12
23.04
21.56
2.4
4.32
20.48
27.04
25.92
21.16
188.4
∑ ππ (π₯π − π₯Μ
)²
π−1
188.4
π 2 =
= 3.19
59
s = 1.78
π 2 =
Otherwise , Standard deviation =
π
√π
Using the hint given to us , we can take π as s .
Standard deviation
=
1.78
√60
= 0.229
Confidence interval = 95% = 0.95/2 = 0.475
The normal distribution table provides us with z = 1.96
Mean error = z x π = 1.96 x 0.2306 = 0.44
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 13/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
Life expectancy of all lamps = 64.4 ± 0.44
63.96 < πβππππππ ππππ ππ₯ππππ‘ππππ¦ ππ πππππ < 64.84
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 14/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
Task 4
(π + 2)2 (π 2 + 10π + π)
π (π + 10)
π 4 + 14π 3 + 54π 2 + 80π + 40
π (π + 2)²
= (π 2 + 4π + 4) +
π (π + 10)
π (π + 10)
Quotient = (π 2 + 4π + 4)
Remainder = π (π + 2)²
π(π + 2)²
π΄
π΅
= +
π (π + 10)
π
10 + π
x s(s+10)
π (π + 2)² = π΄(10 + π ) + π΅ (π )
Resolving above we get
When s = 0 ,
A=
2π
5
When s = -10 ,
π (−8)2 = π΅(−10)
π΅ = −6.4π
Therefore ,
π(π +2)²
π (π +10)
=
2
5π
π−
6.4π
10+π
π₯Μ (π‘) = 0.1155π −5000π‘ sin(8600π‘)
When velocity = 0
π₯Μ (π‘) = 0
0.1155π −5000π‘ sin(8600π‘) = 0
π −5000π‘ = 0
ππ
sin(8600π‘) = 0
But no value
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 15/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
sin(8660π‘) =
0
= π ππ0 , sin π
8660t = 2ππ
or
t = 7.2554 × 10−4 π
8660t = π + 2ππ
t = 3.627 × 10−4 + 7.2554 × 10−4 π
where n is positive integer.
MATLAB
>> t=0:0.0001: 0.002;
>> x=0.1155.*exp(1).^(-5000.*t).*sin(8600.*t);
>> plot(t,x),grid on;
Velocity = 0.05309msΛ¹
Time = 0.0001s
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity
Assignment Working 16/15
BSc(Hons) in Mechanical Engineering/Person BTEC HND in Mechanical Engineering
Task 5
An arithmetic series is the sum of the terms of an arithmetic sequence.
A geometric series is the sum of the terms of a geometric sequence.
No .of logs in nth row = a + (n – 1) d
Where a is the first term
And d is common difference
= 21 + (n-1)(-1)
= 22 – n
13 = 22 – n
n=9
There are 9 rows in the pile
π
Sn = (π + π)
2
a is the first term and l is the last term
9
Sn = (21 + 13) = 153
2
If stacked up to max
Sn =
21
2
(21 + 1) = 231
ESOFT College of Engineering & Technology To Learn and to Apply for the Betterment of Humanity