Jul 21 2006
Teaching MAT181 | 6 x 8 = 40
I’m currently a tutor in USM. Got that place, and I already started teaching tutorial for MAT181 since last Tuesday. It’s C++ paper for Mathematics students, and I love teaching that subject. Next week, after reschedule, I will only teach Thursday and Friday classes.
It’s kinda great to get some extra money as I don’t get any sponsorship for my master in USM. So it’s kinda tense at some point. I prepare a hundred for a week. Quite a big amount, but usually it will be spent for the purpose of eating. My maths friends such as Dani asked the way I spent the money as RM10 per day is some amount enough for them. Well, I don’t think the same way. I spent over RM2 just for breakfast. Lunch requires around RM4, similar to dinner. That exclude supper, tea-time and snacks. But still, I could add my weight as last couple of days I checked, my weight decrease a kilo compare to last semester.
I did some terrible mistakes couple of weeks ago by answering 6 x 8 = 40 in front of USM debaters. Pretty ashamed as I’m graduating in Science (Mathematics) this August. But then, I figure out how to get that kind of answer.
Compile this simple program in C++ and you get 6 x 8 = 40. But it could be proven wrongly with mahematical methods.
include <iostream.h>
void main()
{
int a,b,c;
a=8*6; //a should be 48
b=a*0.1;
c=b*10;
cout<<c;
}
You can see no 40 will be displayed. So, 8×6=40
The reason behind it:-
I declared a,b,c as integer. So, when b=a*0.1, the value of b is 4, as 0.8 will not be a part of b as b is an integer. So here it goes.
i’m lost…