summaryrefslogtreecommitdiff
path: root/3513/CH7
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3513/CH7
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3513/CH7')
-rw-r--r--3513/CH7/EX7.1/Ex7_1.sce30
-rw-r--r--3513/CH7/EX7.1/ch7_1.sce30
-rw-r--r--3513/CH7/EX7.10/Ex7_10.sce39
-rw-r--r--3513/CH7/EX7.10/ch7_10.sce39
-rw-r--r--3513/CH7/EX7.2/Ex7_2.sce31
-rw-r--r--3513/CH7/EX7.2/ch7_2.sce31
-rw-r--r--3513/CH7/EX7.3/Ex7_3.sce23
-rw-r--r--3513/CH7/EX7.3/ch7_3.sce23
-rw-r--r--3513/CH7/EX7.4/Ex7_4.sce16
-rw-r--r--3513/CH7/EX7.4/ch7_4.sce16
-rw-r--r--3513/CH7/EX7.5/Ex7_5.sce16
-rw-r--r--3513/CH7/EX7.5/ch7_5.sce16
-rw-r--r--3513/CH7/EX7.6/Ex7_6.sce16
-rw-r--r--3513/CH7/EX7.6/ch7_6.sce16
-rw-r--r--3513/CH7/EX7.7/Ex7_7.sce16
-rw-r--r--3513/CH7/EX7.7/ch7_7.sce16
-rw-r--r--3513/CH7/EX7.8/Ex7_8.sce16
-rw-r--r--3513/CH7/EX7.8/ch7_8.sce16
-rw-r--r--3513/CH7/EX7.9/Ex7_9.sce25
-rw-r--r--3513/CH7/EX7.9/ch7_9.sce25
20 files changed, 456 insertions, 0 deletions
diff --git a/3513/CH7/EX7.1/Ex7_1.sce b/3513/CH7/EX7.1/Ex7_1.sce
new file mode 100644
index 000000000..c5df44549
--- /dev/null
+++ b/3513/CH7/EX7.1/Ex7_1.sce
@@ -0,0 +1,30 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 139
+clear
+clc;
+d=116;
+n=1000;
+P1=d/n;
+//Control limits for p-chart
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+P1 =(116-15-18)/(18*50);
+//Again control limits
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+//Again one more subgroup is crossing the crossing limits
+P1 =(116-15-18-12)/(17*50);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.1/ch7_1.sce b/3513/CH7/EX7.1/ch7_1.sce
new file mode 100644
index 000000000..c5df44549
--- /dev/null
+++ b/3513/CH7/EX7.1/ch7_1.sce
@@ -0,0 +1,30 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 139
+clear
+clc;
+d=116;
+n=1000;
+P1=d/n;
+//Control limits for p-chart
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+P1 =(116-15-18)/(18*50);
+//Again control limits
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+//Again one more subgroup is crossing the crossing limits
+P1 =(116-15-18-12)/(17*50);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.10/Ex7_10.sce b/3513/CH7/EX7.10/Ex7_10.sce
new file mode 100644
index 000000000..cfd8c5444
--- /dev/null
+++ b/3513/CH7/EX7.10/Ex7_10.sce
@@ -0,0 +1,39 @@
+//Calculate value of standard fraction defective would you recommend for the future
+//page no 153
+clear
+clc;
+P1=0.04;
+n=1600;
+minsg=P1+(25/100)*n;
+maxsg=P1-(25/100)*n;
+
+//(a) Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+//The individual control limits for the 3rd day
+//Control limits for p-chart
+mprintf("The individual control limits for the 3rd day");
+n=900;
+mprintf("\Again for \nP1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.4f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+//The individual control limits for the 6th day
+//Control limits for p-chart
+mprintf("The individual control limits for the 6th day");
+n=2000;
+mprintf("\Again for \nP1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.4f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.10/ch7_10.sce b/3513/CH7/EX7.10/ch7_10.sce
new file mode 100644
index 000000000..cfd8c5444
--- /dev/null
+++ b/3513/CH7/EX7.10/ch7_10.sce
@@ -0,0 +1,39 @@
+//Calculate value of standard fraction defective would you recommend for the future
+//page no 153
+clear
+clc;
+P1=0.04;
+n=1600;
+minsg=P1+(25/100)*n;
+maxsg=P1-(25/100)*n;
+
+//(a) Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+//The individual control limits for the 3rd day
+//Control limits for p-chart
+mprintf("The individual control limits for the 3rd day");
+n=900;
+mprintf("\Again for \nP1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.4f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+//The individual control limits for the 6th day
+//Control limits for p-chart
+mprintf("The individual control limits for the 6th day");
+n=2000;
+mprintf("\Again for \nP1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.4f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.2/Ex7_2.sce b/3513/CH7/EX7.2/Ex7_2.sce
new file mode 100644
index 000000000..aca5acedc
--- /dev/null
+++ b/3513/CH7/EX7.2/Ex7_2.sce
@@ -0,0 +1,31 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 143
+clear
+clc;
+d=20;
+n=4000;
+P1=0.116;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+P1 =(116-15-18)/(18*50);
+//Again control limits
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+//Again one more subgroup is crossing the crossing limits
+P1 =(116-15-18-12)/(17*50);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.2/ch7_2.sce b/3513/CH7/EX7.2/ch7_2.sce
new file mode 100644
index 000000000..aca5acedc
--- /dev/null
+++ b/3513/CH7/EX7.2/ch7_2.sce
@@ -0,0 +1,31 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 143
+clear
+clc;
+d=20;
+n=4000;
+P1=0.116;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+P1 =(116-15-18)/(18*50);
+//Again control limits
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+//Again one more subgroup is crossing the crossing limits
+P1 =(116-15-18-12)/(17*50);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.3/Ex7_3.sce b/3513/CH7/EX7.3/Ex7_3.sce
new file mode 100644
index 000000000..bf29035e1
--- /dev/null
+++ b/3513/CH7/EX7.3/Ex7_3.sce
@@ -0,0 +1,23 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 144
+clear
+clc;
+d=312;
+n=65;
+P1=d/(n*15);
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+P1 =(312-6)/(65*14);
+//Again control limits
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.3/ch7_3.sce b/3513/CH7/EX7.3/ch7_3.sce
new file mode 100644
index 000000000..bf29035e1
--- /dev/null
+++ b/3513/CH7/EX7.3/ch7_3.sce
@@ -0,0 +1,23 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 144
+clear
+clc;
+d=312;
+n=65;
+P1=d/(n*15);
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+P1 =(312-6)/(65*14);
+//Again control limits
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.4/Ex7_4.sce b/3513/CH7/EX7.4/Ex7_4.sce
new file mode 100644
index 000000000..682c71ec6
--- /dev/null
+++ b/3513/CH7/EX7.4/Ex7_4.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 147
+clear
+clc;
+d=26;
+ns=447;
+P1=d/ns;
+n=48;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.4/ch7_4.sce b/3513/CH7/EX7.4/ch7_4.sce
new file mode 100644
index 000000000..682c71ec6
--- /dev/null
+++ b/3513/CH7/EX7.4/ch7_4.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 147
+clear
+clc;
+d=26;
+ns=447;
+P1=d/ns;
+n=48;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.5/Ex7_5.sce b/3513/CH7/EX7.5/Ex7_5.sce
new file mode 100644
index 000000000..e693a650e
--- /dev/null
+++ b/3513/CH7/EX7.5/Ex7_5.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 148
+clear
+clc;
+ds=2349;
+ns=19720;
+P1=ds/ns;
+n=960;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.5/ch7_5.sce b/3513/CH7/EX7.5/ch7_5.sce
new file mode 100644
index 000000000..e693a650e
--- /dev/null
+++ b/3513/CH7/EX7.5/ch7_5.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 148
+clear
+clc;
+ds=2349;
+ns=19720;
+P1=ds/ns;
+n=960;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.6/Ex7_6.sce b/3513/CH7/EX7.6/Ex7_6.sce
new file mode 100644
index 000000000..40673fb1d
--- /dev/null
+++ b/3513/CH7/EX7.6/Ex7_6.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 148
+clear
+clc;
+ds=614;
+ns=33725;
+P1=ds/ns;
+n=6000;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.6/ch7_6.sce b/3513/CH7/EX7.6/ch7_6.sce
new file mode 100644
index 000000000..40673fb1d
--- /dev/null
+++ b/3513/CH7/EX7.6/ch7_6.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 148
+clear
+clc;
+ds=614;
+ns=33725;
+P1=ds/ns;
+n=6000;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.7/Ex7_7.sce b/3513/CH7/EX7.7/Ex7_7.sce
new file mode 100644
index 000000000..dca766204
--- /dev/null
+++ b/3513/CH7/EX7.7/Ex7_7.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 150
+clear
+clc;
+ds=158;
+ns=2196;
+P1=ds/ns;
+n=54;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.7/ch7_7.sce b/3513/CH7/EX7.7/ch7_7.sce
new file mode 100644
index 000000000..dca766204
--- /dev/null
+++ b/3513/CH7/EX7.7/ch7_7.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 150
+clear
+clc;
+ds=158;
+ns=2196;
+P1=ds/ns;
+n=54;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.8/Ex7_8.sce b/3513/CH7/EX7.8/Ex7_8.sce
new file mode 100644
index 000000000..5a5d104b7
--- /dev/null
+++ b/3513/CH7/EX7.8/Ex7_8.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 151
+clear
+clc;
+ds=127;
+ns=1547;
+P1=ds/ns;
+n=188;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.8/ch7_8.sce b/3513/CH7/EX7.8/ch7_8.sce
new file mode 100644
index 000000000..5a5d104b7
--- /dev/null
+++ b/3513/CH7/EX7.8/ch7_8.sce
@@ -0,0 +1,16 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 151
+clear
+clc;
+ds=127;
+ns=1547;
+P1=ds/ns;
+n=188;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.9/Ex7_9.sce b/3513/CH7/EX7.9/Ex7_9.sce
new file mode 100644
index 000000000..ea801870c
--- /dev/null
+++ b/3513/CH7/EX7.9/Ex7_9.sce
@@ -0,0 +1,25 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 152
+clear
+clc;
+ds=230;
+ns=4150;
+P1=ds/ns;
+n=200;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+P1=(230-30)/(4150-200);
+//Control limits for p-chart
+mprintf("\Again for \nP1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.4f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
diff --git a/3513/CH7/EX7.9/ch7_9.sce b/3513/CH7/EX7.9/ch7_9.sce
new file mode 100644
index 000000000..ea801870c
--- /dev/null
+++ b/3513/CH7/EX7.9/ch7_9.sce
@@ -0,0 +1,25 @@
+//Calculate the control limits for the p-chart using 3σ limits
+//page no 152
+clear
+clc;
+ds=230;
+ns=4150;
+P1=ds/ns;
+n=200;
+//Control limits for p-chart
+mprintf("\P1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.2f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);
+P1=(230-30)/(4150-200);
+//Control limits for p-chart
+mprintf("\Again for \nP1 = %.4f \n",P1);
+UCL=P1+3*sqrt((P1*(1-P1))/n);
+mprintf("\UCL = %.2f \n",UCL);
+LCL=P1-3*sqrt((P1*(1-P1))/n);
+mprintf("\LCL = %.4f \n",LCL);
+CL=P1;
+mprintf("\CL = %.2f \n",CL);