diff options
Diffstat (limited to '1553/CH10')
32 files changed, 320 insertions, 0 deletions
diff --git a/1553/CH10/EX10.1/10Ex1.sce b/1553/CH10/EX10.1/10Ex1.sce new file mode 100644 index 000000000..15b9342bc --- /dev/null +++ b/1553/CH10/EX10.1/10Ex1.sce @@ -0,0 +1,10 @@ +//chapter 10 Ex 1
+
+clc;
+clear;
+close;
+
+mprintf("(i)56 percent=%.2f",(56/100));
+mprintf("\n(ii)4 percent=%.3f",(4/100));
+mprintf("\n(iii)0.6 percent=%.3f",(.6/100));
+mprintf("\n(iv)0.08 percent=%.4f",(.08/100));
diff --git a/1553/CH10/EX10.10/10Ex10.sce b/1553/CH10/EX10.10/10Ex10.sce new file mode 100644 index 000000000..642a90760 --- /dev/null +++ b/1553/CH10/EX10.10/10Ex10.sce @@ -0,0 +1,9 @@ +//chapter 10 Ex 10
+
+clc;
+clear;
+close;
+Diff=21;
+per=65/100
+num=Diff/(4/5-per);
+printf("The number is %1.0f.",num);
diff --git a/1553/CH10/EX10.11/10Ex11.sce b/1553/CH10/EX10.11/10Ex11.sce new file mode 100644 index 000000000..f56bff902 --- /dev/null +++ b/1553/CH10/EX10.11/10Ex11.sce @@ -0,0 +1,21 @@ +//chapter 10 Ex 11
+
+clc;
+clear;
+close;
+Diff=1660;
+
+y=poly(0,'y');
+x=Diff+y; //equation 1,given difference
+x=(125/75)*y; //equation 2
+for y=1:5000
+ if Diff+y ==(125/75)*y
+ mprintf("y=%i \n ",y);
+ break
+ end
+end
+disp("substitute value of y in any one of the above equations to find x");
+x=(125/75)*y;
+
+ans=[x y];
+printf("\n Thus the two numbers are %d and %d",ans(1),ans(2));
diff --git a/1553/CH10/EX10.12/10Ex12.sce b/1553/CH10/EX10.12/10Ex12.sce new file mode 100644 index 000000000..42475f00c --- /dev/null +++ b/1553/CH10/EX10.12/10Ex12.sce @@ -0,0 +1,10 @@ +//chapter 10 Ex 12
+
+clc;
+clear;
+close;
+num=81.472;
+nearNum=81.5; //nearest floating number
+Error=nearNum-num;
+percent=(Error/num)*100;
+printf("The percentage error is %0.3f percent",percent);
diff --git a/1553/CH10/EX10.13/10Ex13.sce b/1553/CH10/EX10.13/10Ex13.sce new file mode 100644 index 000000000..84a9569ef --- /dev/null +++ b/1553/CH10/EX10.13/10Ex13.sce @@ -0,0 +1,11 @@ +//chapter 10 Ex 13
+
+clc;
+clear;
+close;
+voters=75/100;
+invalid=2/100;
+candidate=75/100;
+votes=9261;
+totalVotes=votes/(voters*(1-invalid)*candidate);
+mprintf("The number of votes enrolled were %d",totalVotes);
diff --git a/1553/CH10/EX10.14/10Ex14.sce b/1553/CH10/EX10.14/10Ex14.sce new file mode 100644 index 000000000..6b8d8f92d --- /dev/null +++ b/1553/CH10/EX10.14/10Ex14.sce @@ -0,0 +1,12 @@ +//chapter 10 Ex 14
+
+clc;
+clear;
+close;
+probTotal=75;
+arith=10; algebra=30; geo=35;
+per_arith=70/100; per_algebra=40/100; per_geo=60/100;
+correct=(per_arith*arith+per_algebra*algebra+per_geo*geo);
+correctPass=(60/100)*probTotal;
+required=correctPass-correct;
+mprintf("The number of questions required were %d",required);
diff --git a/1553/CH10/EX10.16/10Ex16.sce b/1553/CH10/EX10.16/10Ex16.sce new file mode 100644 index 000000000..9b6a988d0 --- /dev/null +++ b/1553/CH10/EX10.16/10Ex16.sce @@ -0,0 +1,12 @@ +//chapter 10 Ex 16
+
+clc;
+clear;
+close;
+JtoW=40/100; JtoS=20/100; amtRemain=12000; amtRemainPercent=1-JtoW;
+//let initial amount be x
+amtJtoS=3*JtoS*amtRemainPercent;
+bal=amtRemainPercent-amtJtoS;
+amtBank=(1/2)*bal;
+initialAmt=amtRemain/amtBank;
+mprintf("Mr. Jones initially had Rs.%d with him",initialAmt);
diff --git a/1553/CH10/EX10.17/10Ex17.sce b/1553/CH10/EX10.17/10Ex17.sce new file mode 100644 index 000000000..3b0974ebe --- /dev/null +++ b/1553/CH10/EX10.17/10Ex17.sce @@ -0,0 +1,8 @@ +//chapter 10 Ex 17
+
+clc;
+clear;
+close;
+died=10/100; left=25/100; popRemain=4050;
+popOriginal= popRemain/((1-died)*(1-left));
+mprintf("Original population was %d",popOriginal);
diff --git a/1553/CH10/EX10.18/10Ex18.sce b/1553/CH10/EX10.18/10Ex18.sce new file mode 100644 index 000000000..2692bfe7b --- /dev/null +++ b/1553/CH10/EX10.18/10Ex18.sce @@ -0,0 +1,9 @@ +//chapter 10 Ex 18
+
+clc;
+clear;
+close;
+com=5/100; amtupto5=10000; morethan5=4/100; remits=31100;
+amtCom=com*amtupto5;
+total=(remits+amtCom-(amtupto5*morethan5))/(1-morethan5);
+mprintf("The total sales are Rs.%d",total);
diff --git a/1553/CH10/EX10.19/10Ex19.sce b/1553/CH10/EX10.19/10Ex19.sce new file mode 100644 index 000000000..305f7d697 --- /dev/null +++ b/1553/CH10/EX10.19/10Ex19.sce @@ -0,0 +1,17 @@ +//chapter 10 Ex 19
+
+clc;
+clear;
+close;
+dec=50/100; inc=50/100;
+//let original be Rs.100
+original=100;
+final=(dec*original)*(1+inc);
+if(original>final)
+
+changePercent=original-final;
+mprintf("The salary of raman is decreased by %d percent",changePercent);
+else
+ changePercent=final-original;
+ mprintf("The salary of raman is increased by %d percent",changePercent);
+end
diff --git a/1553/CH10/EX10.2/10Ex2.sce b/1553/CH10/EX10.2/10Ex2.sce new file mode 100644 index 000000000..a906e8b8f --- /dev/null +++ b/1553/CH10/EX10.2/10Ex2.sce @@ -0,0 +1,6 @@ +//chapter 10 Ex 2
+clc;
+clear;
+close;
+n1=6; n2=28; n3=0.2; n4=.04;
+mprintf("(i)6 percent=%.2f\n (ii)28 percent=%.2f\n (iii)0.2 percent=%.3f\n (iv)0.04 percent=%.4f",n1/100,n2/100,n3/100,n4/100);
diff --git a/1553/CH10/EX10.20/10Ex20.sce b/1553/CH10/EX10.20/10Ex20.sce new file mode 100644 index 000000000..f576d290c --- /dev/null +++ b/1553/CH10/EX10.20/10Ex20.sce @@ -0,0 +1,15 @@ +//chapter 10 Ex 20
+
+clc;
+clear;
+close;
+spends=75/100; inc=20/100; expPercent=10/100;
+original=100;
+expAmt=original*spends;
+saving=original-expAmt;
+newIncome=original*(1+inc);
+newExp=(1+expPercent)*expAmt;
+newSaving=newIncome-newExp;
+incSaving=newSaving-saving;
+incPercent=(incSaving/(1-spends));
+mprintf("The increase in percentage is %d percent",incPercent);
diff --git a/1553/CH10/EX10.21/10Ex21.sce b/1553/CH10/EX10.21/10Ex21.sce new file mode 100644 index 000000000..edbf2552e --- /dev/null +++ b/1553/CH10/EX10.21/10Ex21.sce @@ -0,0 +1,10 @@ +//chapter 10 Ex 21
+
+clc;
+clear;
+close;
+red=10/100;
+original=100;
+newSal=original*(1-red);
+increase=((original-newSal)/newSal)*100;
+mprintf("The percentage reduction is %.2f percent",increase);
diff --git a/1553/CH10/EX10.22/10Ex22.sce b/1553/CH10/EX10.22/10Ex22.sce new file mode 100644 index 000000000..c2f4acb52 --- /dev/null +++ b/1553/CH10/EX10.22/10Ex22.sce @@ -0,0 +1,11 @@ +//chapter 10 Ex 22
+
+clc;
+clear;
+close;
+dec=10/100; numInc=30/100;
+original=100; num=100;
+totalsale=original*num;
+newtotal=original*(1-dec)*(1+numInc)*100;
+incRevenue=((newtotal-totalsale)/totalsale)*100;
+mprintf("The increase in revenue is %d percent",incRevenue);
diff --git a/1553/CH10/EX10.23/10Ex23.sce b/1553/CH10/EX10.23/10Ex23.sce new file mode 100644 index 000000000..0bd1df494 --- /dev/null +++ b/1553/CH10/EX10.23/10Ex23.sce @@ -0,0 +1,9 @@ +//chapter 10 Ex 23
+
+clc;
+clear;
+close;
+numInc=15/100; denDec=8/100;
+frac=15/16;
+original= frac/((1+numInc)/(1-denDec));
+mprintf("The original fraction is: %.2f",original);
diff --git a/1553/CH10/EX10.24/10Ex24.sce b/1553/CH10/EX10.24/10Ex24.sce new file mode 100644 index 000000000..aa827c6b2 --- /dev/null +++ b/1553/CH10/EX10.24/10Ex24.sce @@ -0,0 +1,8 @@ +//chapter 10 Ex 24
+
+clc;
+clear;
+close;
+inc=25/100;
+red=(inc/(1+inc))*100;
+mprintf("The reduction in consumption should be %d percent",red);
diff --git a/1553/CH10/EX10.25/10Ex25.sce b/1553/CH10/EX10.25/10Ex25.sce new file mode 100644 index 000000000..7aaa30037 --- /dev/null +++ b/1553/CH10/EX10.25/10Ex25.sce @@ -0,0 +1,9 @@ +//chapter 10 Ex 25
+
+clc;
+clear;
+close;
+pop=176400; rate=5/100; years=2;
+popafter=pop*(1+rate)^years;
+popbefore=pop/((1+rate)^years);
+mprintf("The population 2 years after is %d \n and 2 years before was %d",popafter,popbefore);
diff --git a/1553/CH10/EX10.26/10Ex26.sce b/1553/CH10/EX10.26/10Ex26.sce new file mode 100644 index 000000000..46ddb1be0 --- /dev/null +++ b/1553/CH10/EX10.26/10Ex26.sce @@ -0,0 +1,10 @@ +//chapter 10 Ex 26
+
+clc;
+clear;
+close;
+decRate=10/100;
+presentValue=162000; years=2;
+valueAfter=presentValue*(1-decRate)^years;
+valueBefore=presentValue/(1-decRate)^years;
+mprintf("The value after 2 years will be Rs.%d \n and before 2 years was Rs.%d",valueAfter,valueBefore);
diff --git a/1553/CH10/EX10.27/10Ex27.sce b/1553/CH10/EX10.27/10Ex27.sce new file mode 100644 index 000000000..671f19210 --- /dev/null +++ b/1553/CH10/EX10.27/10Ex27.sce @@ -0,0 +1,8 @@ +//chapter 10 Ex 27
+
+clc;
+clear;
+close;
+inc=5/100; dec=5/100; popAfter=9975;
+popBefore=popAfter/((1+inc)*(1-dec));
+mprintf("The population at the beginning of first year was %d",popBefore);
diff --git a/1553/CH10/EX10.28/10Ex28.sce b/1553/CH10/EX10.28/10Ex28.sce new file mode 100644 index 000000000..995cd1bf6 --- /dev/null +++ b/1553/CH10/EX10.28/10Ex28.sce @@ -0,0 +1,8 @@ +//chapter 10 Ex 28
+
+clc;
+clear;
+close;
+AmoreB=100/(3*100);
+BlessA=(AmoreB/(1+AmoreB))*100;
+mprintf("B earns %d percent less than A",BlessA);
diff --git a/1553/CH10/EX10.29/10Ex29.sce b/1553/CH10/EX10.29/10Ex29.sce new file mode 100644 index 000000000..5d7b88564 --- /dev/null +++ b/1553/CH10/EX10.29/10Ex29.sce @@ -0,0 +1,8 @@ +//chapter 10 Ex 29
+
+clc;
+clear;
+close;
+AlessB=20/100;
+BmoreA=(AlessB/(1-AlessB))*100;
+mprintf("B earns %d percent more than A",BmoreA);
diff --git a/1553/CH10/EX10.3/10Ex3.sce b/1553/CH10/EX10.3/10Ex3.sce new file mode 100644 index 000000000..131c34279 --- /dev/null +++ b/1553/CH10/EX10.3/10Ex3.sce @@ -0,0 +1,6 @@ +//chapter 10 Ex 3
+clc;
+clear;
+close;
+n1=23/36; n2=27/4; n3=.004;
+mprintf("(i)23/36=%.2f percent\n (ii)27/4 =%.0f percent\n (iii)0.004 =%.1f percent",n1*100,n2*100,n3*100);
diff --git a/1553/CH10/EX10.30/10Ex30.sce b/1553/CH10/EX10.30/10Ex30.sce new file mode 100644 index 000000000..9ebe085c8 --- /dev/null +++ b/1553/CH10/EX10.30/10Ex30.sce @@ -0,0 +1,11 @@ +//chapter 10 Ex 30
+
+clc;
+clear;
+close;
+solAmt=30; solPercent=2/100; incPercent=10/100;
+saltAmt=solAmt*solPercent;
+//let x kg of pure salt be added, thus equation will be (0.6+x)/(30+x)=10/100
+pureAmt=240/90;
+mprintf("The amount of pure salt that must be added is %.2f kg.",pureAmt);
+
diff --git a/1553/CH10/EX10.31/10Ex31.sce b/1553/CH10/EX10.31/10Ex31.sce new file mode 100644 index 000000000..49037924d --- /dev/null +++ b/1553/CH10/EX10.31/10Ex31.sce @@ -0,0 +1,10 @@ +//chapter 10 Ex 31
+
+clc;
+clear;
+close;
+redPercent=(25/4)/100; more=120;
+redRate=1-redPercent; //this term has to be multiplied by original rate that is found below
+originalRate=(more*(1/redRate-1));
+reducedRate=originalRate*redRate;
+mprintf("The reduced rate is Rs. %.2f per kg",reducedRate);
diff --git a/1553/CH10/EX10.32/10Ex32.sce b/1553/CH10/EX10.32/10Ex32.sce new file mode 100644 index 000000000..04cc2429a --- /dev/null +++ b/1553/CH10/EX10.32/10Ex32.sce @@ -0,0 +1,9 @@ +//chapter 10 Ex 32
+
+clc;
+clear;
+close;
+hinFail=35; engFail=45; bothFail=20;
+hinengbothFail=hinFail+engFail-bothFail;
+passboth=100-hinengbothFail;
+mprintf("The percentage passed in both is %d percent",passboth);
diff --git a/1553/CH10/EX10.33/10Ex33.sce b/1553/CH10/EX10.33/10Ex33.sce new file mode 100644 index 000000000..8ee4b27c0 --- /dev/null +++ b/1553/CH10/EX10.33/10Ex33.sce @@ -0,0 +1,8 @@ +//chapter 10 Ex 33
+
+clc;
+clear;
+close;
+engPass=80/100; mathPass=85/100; bothPass=75/100; bothFail=40;
+total=bothFail/(1-(engPass+mathPass-bothPass));
+mprintf("Total number of students are %.0f",total);
diff --git a/1553/CH10/EX10.4/10Ex4.sce b/1553/CH10/EX10.4/10Ex4.sce new file mode 100644 index 000000000..e16645b69 --- /dev/null +++ b/1553/CH10/EX10.4/10Ex4.sce @@ -0,0 +1,7 @@ +//chapter 10 Ex 4
+clc;
+clear;
+close;
+n1=(28/100)*450+(45/100)*280;
+n2=(50/3/100)*600-(100/3/100)*180;
+mprintf("(i)28 percent of 450+45 percent of 280=%.0f\n (ii)50/3 percent of 600 gm-100/3 percent of 180 gm =%.0f gm",n1,n2);
diff --git a/1553/CH10/EX10.5/10Ex5.sce b/1553/CH10/EX10.5/10Ex5.sce new file mode 100644 index 000000000..b94263055 --- /dev/null +++ b/1553/CH10/EX10.5/10Ex5.sce @@ -0,0 +1,10 @@ +//chapter 10 Ex 5
+clc;
+clear;
+close;
+n1=2/50*100;
+n2=((1/2)/(1/3))*100;
+n3=(84/7)*100;
+n4=(40/20)*100;
+n5=(130/(6.5*1000))*100;
+mprintf("(i)2 is %.0f percent of 50\n (ii)1/2 is %.0f percent of 1/3\n (iii)%.0f percent of 7 is 84\n (iv)%.0f percent of 2 metric tonnes is 40 quintals\n (v) %.0f percent of 6.5 litres is 130 ml",n1,n2,n3,n4,n5);
diff --git a/1553/CH10/EX10.6/10Ex6.sce b/1553/CH10/EX10.6/10Ex6.sce new file mode 100644 index 000000000..4d2c00b69 --- /dev/null +++ b/1553/CH10/EX10.6/10Ex6.sce @@ -0,0 +1,6 @@ +//chapter 10 Ex 3
+clc;
+clear;
+close;
+n1=2.125/25; n2=6.3/9; n3=.04/.25;
+mprintf("(i)%.1f percent of 25=2.125\n (ii)9 percent of %.0f =63\n (iii)0.25 percent of %.0f = .04",n1*100,n2*100,n3*100);
diff --git a/1553/CH10/EX10.7/10Ex7.sce b/1553/CH10/EX10.7/10Ex7.sce new file mode 100644 index 000000000..85e68dba7 --- /dev/null +++ b/1553/CH10/EX10.7/10Ex7.sce @@ -0,0 +1,15 @@ +//chapter 10 Ex 1
+
+clc;
+clear;
+close;
+a=(50/3)/100; b=2/15; c=0.17; greatest=a;
+if a>b then if a>c then greatest=a;
+end
+
+else if b>c then greatest=b;
+end
+else greatest=c;
+end
+
+mprintf("The greatest number is %.2f",greatest);
diff --git a/1553/CH10/EX10.8/10Ex8.sce b/1553/CH10/EX10.8/10Ex8.sce new file mode 100644 index 000000000..ba47dc77e --- /dev/null +++ b/1553/CH10/EX10.8/10Ex8.sce @@ -0,0 +1,9 @@ +//chapter 10 Ex 8
+
+clc;
+clear;
+close;
+per1=(7/2)/100;
+per2=(10/3)/100;
+difference=(per1*8400)-(per2*8400);
+mprintf("the difference amount is Rs.%d",difference);
diff --git a/1553/CH10/EX10.9/10Ex9.sce b/1553/CH10/EX10.9/10Ex9.sce new file mode 100644 index 000000000..550e81433 --- /dev/null +++ b/1553/CH10/EX10.9/10Ex9.sce @@ -0,0 +1,8 @@ +//chapter 10 Ex 9
+
+clc;
+clear;
+close;
+per=0.08; reject=2;
+meter= reject/(0.08/100);
+mprintf("The inspector will examine %d meter",meter);
|