Assignment
Part-1
Dear Student, you may have heard about ELIZA program…which was originally developed by Joseph
Weizenbaum in 1964-66 at MIT. Later on, lots of improvements have been made and different versions have
been released. Attached with this assignment is an enhanced ELIZA program. This program pretends to be a
Psychotherapist and can engage you in a serious conversation. Your task is just to run this program, have some
discussion for fun on any topic of your interest. I hope you will appreciate its intelligent responses.
You need to submit two snapshots of your discussion with this program,
• In the first snapshot: you must mention your name and VU-ID and that shall be highlighted in your
snapshot.
• In the second snapshot: you can submit any part of the discussion which you like the most.
10 Marks
Note:
• If you are using Window 7 (64-bit) then you will need to use DOSBox software for running Eliza
program. DOSBox is available on LMS download section.
• Sample of desired screen shots are shown on Page 4… see Figure-1 and Figure-2.
Part-2
In this part, you need to solve an interesting mathematical and logical problem. The story is given below, please
read carefully and answer the question given at the end.
There were two friends Ali and Owais living in a town and used to sell fruits in a market. One day, both of them
were having 30 oranges (each) in their baskets and there was slight difference in selling rate as below.
You can easily calculate that as per above rates…Ali will earn Rs.15 and Owais will earn Rs.10. (Total Rs.25)
Suddenly, Ali has to go for some important task and asked his friend Owais to sell his oranges together by putting
all the oranges in one basket. They decided the rate as below.
Ali’s Rate is……………… 2 oranges per Rs.1
Owais’s Rate is…………... 3 oranges per Rs.1
By adding the two rates…. 5 oranges per Rs.2
Thus Owais has 60 oranges in the basket and selling rate was 5 oranges per Rs.2.
At the end of the day, Owais get Rs. 24 by selling all 60 oranges @ 5 oranges per Rs.2. Now, they don’t know
how to share the amount as they were expecting Rs.25. They start looking for some Wiseman who can tell them
the reason of the difference. You can be the Wiseman if you know the reason.
Your task is to resolve this issue by finding the reasons of difference… they were getting Rs.25 (in total)
when they were selling separately and now they got Rs.24 by selling it together (though the rate appears to
be the same).
Submission
You are required to submit your solution in MS Word format through LMS.
ß For Part-1, two screen shots of your discussion with Eliza program as desired.
ß For Part-2, you need to give the exact reasons of the difference of Rs.1.
Idea Solution :
Part-1
Dear Student, you may have heard about ELIZA program…which was originally developed by Joseph
Weizenbaum in 1964-66 at MIT. Later on, lots of improvements have been made and different versions have
been released. Attached with this assignment is an enhanced ELIZA program. This program pretends to be a
Psychotherapist and can engage you in a serious conversation. Your task is just to run this program, have some
discussion for fun on any topic of your interest. I hope you will appreciate its intelligent responses.
You need to submit two snapshots of your discussion with this program,
• In the first snapshot: you must mention your name and VU-ID and that shall be highlighted in your
snapshot.
• In the second snapshot: you can submit any part of the discussion which you like the most.
10 Marks
Note:
• If you are using Window 7 (64-bit) then you will need to use DOSBox software for running Eliza
program. DOSBox is available on LMS download section.
• Sample of desired screen shots are shown on Page 4… see Figure-1 and Figure-2.
Part-2
In this part, you need to solve an interesting mathematical and logical problem. The story is given below, please
read carefully and answer the question given at the end.
There were two friends Ali and Owais living in a town and used to sell fruits in a market. One day, both of them
were having 30 oranges (each) in their baskets and there was slight difference in selling rate as below.
You can easily calculate that as per above rates…Ali will earn Rs.15 and Owais will earn Rs.10. (Total Rs.25)
Suddenly, Ali has to go for some important task and asked his friend Owais to sell his oranges together by putting
all the oranges in one basket. They decided the rate as below.
Ali’s Rate is……………… 2 oranges per Rs.1
Owais’s Rate is…………... 3 oranges per Rs.1
By adding the two rates…. 5 oranges per Rs.2
Thus Owais has 60 oranges in the basket and selling rate was 5 oranges per Rs.2.
At the end of the day, Owais get Rs. 24 by selling all 60 oranges @ 5 oranges per Rs.2. Now, they don’t know
how to share the amount as they were expecting Rs.25. They start looking for some Wiseman who can tell them
the reason of the difference. You can be the Wiseman if you know the reason.
Your task is to resolve this issue by finding the reasons of difference… they were getting Rs.25 (in total)
when they were selling separately and now they got Rs.24 by selling it together (though the rate appears to
be the same).
Submission
You are required to submit your solution in MS Word format through LMS.
ß For Part-1, two screen shots of your discussion with Eliza program as desired.
ß For Part-2, you need to give the exact reasons of the difference of Rs.1.
Idea Solution :
In 1st condition the price of ONE orange regarding ALI's oranges would be 1/2=Rs: 0.5
While the price of ONE orange regarding WAQAS's oranges would be 1/3=Rs: 0.333
By combining them price of TWO oranges would be 0.333+0.5=Rs: 0.833
In 2nd Condition
Price of ONE orange = Rs: 0.4
While price of 2 oranges = 0.4 X 2 = Rs: 0.800
So there is clearly a difference of 0.833-0.8000=Rs: 0.033
so the difference for their transaction becomes 0.033 X 30 = 0.999 or 1 Rupee
While the price of ONE orange regarding WAQAS's oranges would be 1/3=Rs: 0.333
By combining them price of TWO oranges would be 0.333+0.5=Rs: 0.833
In 2nd Condition
Price of ONE orange = Rs: 0.4
While price of 2 oranges = 0.4 X 2 = Rs: 0.800
So there is clearly a difference of 0.833-0.8000=Rs: 0.033
so the difference for their transaction becomes 0.033 X 30 = 0.999 or 1 Rupee