summaryrefslogtreecommitdiff
path: root/1415/CH1/EX1.2.4
diff options
context:
space:
mode:
Diffstat (limited to '1415/CH1/EX1.2.4')
-rw-r--r--1415/CH1/EX1.2.4/ex4.jpgbin0 -> 65591 bytes
-rw-r--r--1415/CH1/EX1.2.4/ex4.sce33
2 files changed, 33 insertions, 0 deletions
diff --git a/1415/CH1/EX1.2.4/ex4.jpg b/1415/CH1/EX1.2.4/ex4.jpg
new file mode 100644
index 000000000..ca9385a84
--- /dev/null
+++ b/1415/CH1/EX1.2.4/ex4.jpg
Binary files differ
diff --git a/1415/CH1/EX1.2.4/ex4.sce b/1415/CH1/EX1.2.4/ex4.sce
new file mode 100644
index 000000000..b14bc9345
--- /dev/null
+++ b/1415/CH1/EX1.2.4/ex4.sce
@@ -0,0 +1,33 @@
+//Example 4 Page 62
+clc
+clear
+function q1=f(p1)
+ q1=77.8*(p1^(-0.11))
+endfunction
+
+function q2=g(p2)
+ q2=30.4+0.006*p2
+endfunction
+disp('a)')
+p1=([200 400 800 1200 1600 2000 2200])
+q1=f(p1)
+plot(2400,50,p1,q1,'blue')
+
+p2=([200 400 800 1200 1600 2000 2200])
+q2=g(p2)
+plot(2400,50,p2,q2,'red')
+
+disp('the lines cross at $1000 at Equilibrium point')
+disp(f(1000),'Demand:')
+disp(g(1000),'Supply:')
+disp('so 36400 students')
+
+disp('b)')
+disp('If tuition is, say, $1,800, then the supply will be larger thandemand and there will be a surplus of available openings at private schools. Similarly, iftuition is less—say $400—then the supply will be less than the demand, and there willbe a shortage of available openings.')
+
+disp('c)')
+//tuition fee set at &1200
+disp(f(1200),'Demand in thousand seats')
+disp(g(1200),'Supply in thousand seats')
+disp(g(1200)-f(1200),'Surplus is given in thousand seats as:')
+xtitle('Demand and Supply','p','q');