Professional Documents
Culture Documents
Islington College: Logic and Problem Solving MA4001NA Groupwork 1
Islington College: Logic and Problem Solving MA4001NA Groupwork 1
We might want to offer our earnest thanks to all our module educators for their
nonstop guidance and support amid this gathering work. We might likewise want to
thank everybody who made it feasible for us to finish this gathering work. Our most
profound thankfulness to the module educators Mr. Prakash Adhikari and Mr. Ashok
Dhungana who helped us to co-ordinate venture with their animating
recommendations and support.
Besides, we would all value our consistent endeavors and association while doing
this gathering work. We did this extend for marks as well as to acquire learning and
data in regards to all the related points of this gathering work, so we might
particularly want to thank our module instructors for allowing us to do this gathering
work. We would likewise need to welcome the direction given by our senior siblings
and sisters for giving us a few thoughts regarding how to take care of the issue in
snappier and less demanding ways. This undertaking would not have been
conceivable without the constant cooperation and communication among us
colleagues.
We might truly want to express our most profound thankfulness and appreciation to
our module educators for giving us this venture to extemporize ourselves both with
learning and abilities. Finally, we might want to thank everybody who guided us all
through this gathering work straightforwardly and in a roundabout way
MA4001NA LOGIC AND PROBLEM SOLVING
Contents
1) Question No.1........................................................................................................1
Question No.2.............................................................................................................10
Part A......................................................................................................................10
Memorandum..........................................................................................................22
Part B......................................................................................................................23
2) Question No.3......................................................................................................27
Log Of Meetings.........................................................................................................31
MA4001NA LOGIC AND PROBLEM SOLVING
TABLE OF TABLE
TABLE OF FIGURES
1) Question No.1
Write a procedure, tax, to calculate (to the nearest pound) the tax a person owes,
i) The salary,
Your tests of your procedure should include the following values, which should be
tax (30500),
tax (128000),
tax (262000),
tax (19000),
tax (53330),
tax (-16700),
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Income Tax Brackets Tax Slab Tax Tax Amount Taxable Amount Left
Rate
0 31700 =B9-A9 20% =if(C9>B6,B6*D9,C9*D9) =if(C9>B6,0,B6-C9)
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Salary=30500
Tax Rate=20%
Amount of Tax=6100
Figure 2: Procedure showing the tax rate, amount of tax and amount left after tax for salary
30500
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Salary=128000
Tax Rate=40%
Amount of Tax=44860
Figure 3: Procedure showing the tax rate, amount of tax and amount left after tax for salary
128000
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Salary=262000
Tax Rate=45%
Amount of Tax=104060.5
Figure 4: Procedure showing the tax rate, amount of tax and amount left after tax for
salary 262000
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Salary=19000
Tax Rate=20%
Amount of Tax=3800
Figure 5: Procedure showing the tax rate, amount of tax and amount left after tax for
salary 19000
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Figure 6: Procedure showing the tax rate, amount of tax and amount left after tax for salary
53330
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Question No.2
Part A
Martin and Son’s company wants to manufacture a mixture containing three contents
X, Y and Z. The cost of X, Y and Z are $5, $4 and $3 respectively. The company
prepares the mixture to meet out the demand of the costumers in the following
manner.
(i) The quantity of X cannot be more than 200 kgs in the mixtures.
Find the optimal combination of the three contents for a mixture of 1000 kgs, so that
Questions
You should answer the following questions and incorporate your answers into a
word-processed report to form part of your final pdf. The sections of your report
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Solution,
Contents X Y Z
Cost $5 $4 $3 Minimum
Requirements Not more than At least 300kg Not more Total=1000
200kg than 400 kg
kg
Cost = 5p + 4q + 3r
Let M = 5p + 4q + 3r
Minimize M = 5p+4q+3r
Constraints
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Solution,
Let S1 and S3 be the slack variable whereas S2 be the surplus variable and A1 and
A2 be the artificial variable.
p + S1 = 200
q - S2 + A1 = 300
r + S3 = 400
p + q + r + A2 = 1000
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
A. Simplex table I:
M p q r S1 S2 S3 A1 A2 Constant
R0 1 -5 -4 -3 0 0 0 -10 -10 0
R1 0 1 0 0 1 0 0 0 0 200
R2 0 0 1 0 0 -1 0 1 0 300
R3 0 0 0 1 0 0 1 0 0 400
R4 0 1 1 1 0 0 0 0 1 1000
Updating the R0,
New R0 = old R0 + (R2+R4)
1 = 1 + 10(0+0)
5 = -5 + 10(0+1)
16 = -4 + 10(1+1)
7 = -3 + 10(0+1)
0 = 0 + 10(0+0)
-10 = 0 + 10(-1+0)
0 = 0 + 10(0+0)
0 = -10 + 10(1+0)
0 = -10 +10(0+1)
13,000 = 0 +10(300+1000)
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
M p q r S1 S2 S3 A1 A2 Constant Ratio
R0 1 5 16 7 0 -10 0 0 0 13000 ---
R1 0 1 0 0 1 0 0 0 0 200 ∞
R2 0 0 1 0 0 -1 0 1 0 300 300
R3 0 0 0 1 0 0 1 0 0 400 ∞
R4 0 1 1 1 0 0 0 0 1 1000 1000
Updating R0,
New R0 = old R0 - 16(R2)
1 = 1 – 16*0
5 = 5 – 16*0
0 = 16 – 16*1
7 = 7 – 16*0
0 = 0 – 16*0
6 = -10 -16*(-1)
0 = 0 -16*0
-16 = 0 - 16*1
0 = 0 – 16*0
8200 = 13000 – 16*300
Updating R4,
New R4 = old R4 – R2
0=0–0
1=1–0
0=1–1
1=1–0
0=0–0
1 = 0 – (-1)
0=0–0
-1 = 0 – 1
1=1–0
700 = 1000 – 300
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
M p q r S1 S2 S3 A1 A2 Constant Ratio
R0 1 5 0 7 0 6 0 -16 0 8200 ---
R1 0 1 0 0 1 0 0 0 0 200 ∞
R2 0 0 1 0 0 -1 0 1 0 300 ∞
R3 0 0 0 1 0 0 1 0 0 400 400
R4 0 1 0 1 0 1 0 -1 1 700 700
Updating R4,
New R4 = old R4 – R3
0=0–0
1=1–0
0=0–0
0=1–1
0=0–0
1=1–0
-1 = 0 – 1
-1 = (-1) – 0
1=1–0
300 = 700 – 300
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
D. Simplex table IV
M p q r S1 S2 S3 A1 A2 Constant Ratio
R0 1 5 0 0 0 6 -7 -16 0 5400 ------
R1 0 1 0 0 1 0 0 0 0 200 ∞
R2 0 0 1 0 0 -1 0 1 0 300 -300
R3 0 0 0 1 0 0 1 0 0 400 ∞
R4 0 1 0 0 0 1 -1 -1 1 300 300
Updating R0,
New R0 = old R0 – 6*R4
1 = 1 – 6*0
-1 = 5 – 6*1
0 = 0 – 6*0
0 = 0 – 6*0
0 = 0 – 6*0
0 = 6 – 6*1
-1 = (-7) – 6*(-1)
-10 = (-16) – 6*(-1)
-6 = 0 – 6*1
3600 = 5400 – 6*300
Updating R2,
New R2 = old R2 + R4
0=0+0
1=0+1
1=1+0
0=0+0
0=0+0
0 = (-1) + 1
-1 = 0 + (-1)
0 = 1 + (-1)
1=0+1
600 = 300 + 300
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
A. Simplex table V
M p q r S1 S2 S3 A1 A2 Constant
R0 1 -1 0 0 0 0 -1 -10 -6 3600
R1 0 1 0 0 1 0 0 0 0 200
R2 0 1 1 0 0 0 -1 0 1 600
R3 0 0 0 1 0 0 1 0 0 400
R4 0 1 0 0 0 1 -1 -1 1 300
Since all the values in R0 <= 0, we have reached our optimal solution. So, Minimum
value (M)= 3600
p = 0,
q = 600,
r = 400
c) Solve the problem using the Excel Solver and interpret the results.
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
d) For the final part of your report, in your capacity as an Adviser, you should present
a memorandum to the Martin and Son’s company. Describe your main conclusions
in simple, non-technical English; i.e. do not use technical terms like variable,
objective function or dual price. Don’t worry about repeating some or all of the
points that you have already made in answer to earlier questions. The aim is to
the combination of contents used in the mixture, but who knows nothing about the
subject of linear programming. You may use tables and charts if you wish.
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Memorandum
SUBJECT: To prepare the mixture of three contents and meet out the demands
of the customers.
The technique your organization has been utilizing to meet the requests of the client
from the three unique substance isn't as powerful as it is accepted to be. We have
done huge research and found the more productive strategy to blend the three
substance that you need to meet the requests of your clients. We additionally trust
the technique to be more future confirmation and versatile.
We trust that utilizing the blend of the item in the proportions of 0 kg for the main
item, 600 kgs for the second item and 400 kgs for the third item would be the best for
the most extreme measure of benefits and the meet the requests without hurting the
creation excessively. This will likewise diminish your expenses to the 3600 which is
the base sum workable for the accessible line of substance.
We trust that the technique for blend can have a lot of effect on the measure of
benefit and the meet every one of your requests; and this data will unquestionably be
useful to your organization.
Advisors,
Dibya Shrestha
Priya Mushyan
Isha K.C
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Part B
Solve the following linear programming problem graphically:
Subjected to,
2x + y ≤ 90
x + 2y ≤ 80
x + y ≤ 50
x, y ≥ 0
Solution,
Equation 1) 2x+y<=90
X , y>0
2x+y=90
or, y=90–2x
X 25 30 25
y 40 30 20
x+2y=80
or, x=80–2y
X 20 80 40
y 30 0 20
x+y=50
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
or, y=50-x
X 30 20 40
y 20 30 10
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
To find the maximum value for the given equation, we have to follow the following
table:
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Max, Z=0.3x+0.4y
points x y 0.3x+0.4y=Z
(0,0) 0 0 0
(50,0) 50 0 15
(40,10) 40 10 16
(20,30) 20 30 18
(0,40) 0 40 16
Z(optimum)=18 at D(20,30)
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
2) Question No.3
If the total costs of a manufacturing company is C(x) = 390+24x, and the total
revenue is
Questions
You should answer the following questions and incorporate your answers into a
word-
processed report. The sections of your report should correspond to the individual
questions
below.
i.Solution,
Revenue price.....R(x)=640x-42x²
C(x)=R(x)
or, 390+24x=640x-42x²
or, 42x²-616x+390=0
or, 21x²-308x+195=0
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Using formula,
x={-b+-(b²-4ac)½}/2a
=14.004 =0.663
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
= 726.096 = 405.912
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Solution,
Then,
Or, x = -616/2*(-42)
Or, x = -616/-(84)
Therefore, 7 units are required to produce the level of production that maximizes the
profit.
Or, y = 1868.667
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C
MA4001NA LOGIC AND PROBLEM SOLVING
Log Of Meetings
DIBYA SHRESTHA
PRIYA MUSHYAN
ISHA K.C