summaryrefslogtreecommitdiff
path: root/1208/CH9/EX9.5/Exa5.sce
blob: 69579a1ead423c8602a5966e9edba00b991e8d6d (plain)
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
//Exa3
clc;
clear;
close;
//given data :
SQa=100//in Kgs
AQa=90//in Kgs
SPa=2//in rupees per Kgs
APa=2.20//in rupees per Kgs
SQb=50//in kg
AQb=60//in Kg
SPb=5//in rupees per Kg
APb=4.50//in rupees per Kg
//(i) MUVa
MUVa=SPa*(SQa-AQa);//in rupees
//(ii) MPVa
MPVa=AQa*(SPa-APa);//in rupees
//(iii)  MCVa
MCVa=(SQa*SPa)-(AQa*APa);//in rupees

//(i) MUVb
MUVb=SPb*(SQb-AQb);//in rupees
//(ii) MPVb
MPVb=AQb*(SPb-APb);//in rupees
//(iii)  MCVb
MCVb=(SQb*SPb)-(AQb*APb);//in rupees
RSQa=(SQa*150)/(SQa+SQb);
RSQb=(SQb*150)/(SQa+SQb);
//(iv) MMVa
MMVa=SPa*(RSQa-AQa);
//(iv) MMVb
MMVb=SPb*(RSQb-AQb);
//(v) MSUVa
MSUVa=SPa*(SQa-RSQa);
//(v) MSUVb
MSUVb=SPb*(SQb-RSQb);
//material A
disp("Variances for material A")
disp(MUVa,"MUV=");
disp(MPVa,"MPV=");
disp(MCVa,"MCV=");
disp(MMVa,"MMV=");
disp(MSUVa,"MSUV=")
//material B
disp("Variances for material B")
disp(MUVb,"MUV=");
disp(MPVb,"MPV=");
disp(MCVb,"MCV=");
disp(MMVb,"MMV=");
disp(MSUVb,"MSUV=")
disp("Note :  ")
disp("Negative variances indicate adverse value   ");
disp("Positive variances indicate favourable value   ")