Saturday, December 21, 2013

Best Motivational video

      Recently, I had seen a video which will motivate you in just few minutes. It is one of the best motivational video that I had ever came across and I would like to share this video with you all guys.

After seeing this video you will surely do what you want to do and make the most out of your life.

All the Best for your future!

Thursday, December 12, 2013

The day when I started learning C language

      It was my 2nd semester at Thadomal Shahani Engineering College when we were introduced to a subject called SPA(i.e. C Programming). I always wanted to learn to code something and make some useful program out of it, so during my 2nd semester I was excited to learn C language. The college started and we were having lectures and practicals to develop our C Programming language skill. At the beginning we were taught how to think logically to develop a program and also how to write an algorithm and make a flowchart so later we can code in C language using that logic.

      I used to pay attention to this kind of subjects, because these were the subjects which I like the most. At the start it was difficult for me to write algorithm and draw a flowchart, as the days passed I managed to write a proper algorithm and it was my first step to learn programming. Also, we were taught the basic steps and syntax which was required to start coding in C language. During every practical hours, we were given a problem statement and we were told to solve it on our own. At the start I used to face problems in the practical and I had spent even 2-3 hours thinking about how to write even a simple Fibonacci program which will take a limit from the user and print Fibonacci numbers till that limit.

      As the days passed, I got the hang of it and started coding all by myself. It was strange but I always used to code first and then write the algorithm on that code, maybe because I used to think of the logic in my mind and after that start to code instead of writing an algorithm.

      For all C enthusiastic, let me give you a tip on how to solve any pattern given to you.
 Lets analyse this triangle.

  1. It is a star pattern, so print statement will require "*" in it.
  2. Here 3 triangles are there and we have to print spaces in between.
  3. Four loops would be required. One for different lines and one for each triangle.
  4. So, one outer loop would be required with three inner loops.
  5. As line number increases, number of stars in 1st and in 3rd triangle will decrease,One thing you should realize that number of spaces at each line increases by 2 i.e twice the number of line. 
  6. So the loop goes as follows.
  for(i=0;i<n;i++)                //Outer Loop
  {
    for(j=0;j<n-i;j++)            //Runs for n-i times to print star
    {
      printf("*");                    //1st Inner Loop
    }
    for(k=0;k<(2*i);k++)    //Runs for 2*i times to print spaces
    {
      printf(" ");                   //2nd Inner Loop
    }
    for(m=0;m<n-i;m++)   //Runs for n-i times to print star
    {
      printf("*");                  //3rd Inner Loop
    }
    printf("\n");                  //To move to next line
  }


      Lastly, I would like to thank my SPA (i.e. C Programming Language) subject teacher for all the help and support I needed and would like to dedicate this quote to her.


Saturday, December 7, 2013

Long, Easy yet Difficult Sem-2 Maths Paper

      As usual, I reached college early in the morning to study a little bit before the exams get started. It was a fine day until I started writing my sem-2 Maths paper. When I got the question paper in my hand every question which was there in the paper was easy for me. So, I started solving my maths paper, finished my 1st compulsory question correctly and was happy about it, after that I started solving my 2nd set of questions and it was having 3 sub questions.

      Soon, I wrote my 1st sub question and had finished it completely, when I got my final answer to the question I was having a doubt about the correctness of the answer. Then I started verifying that answer and I found that the answer was wrong, in order to get that answer correct I had to debug the solved sum and I found that I had done a silly mistake in the middle of the sum. I had to repeat the whole the sum and I did it. By this time I had wasted some of my time.
Little bit of tension started building up as I had wasted some of my time but I knew that I can complete my paper in time.

      Soon, after that as I was attempting the other sub questions the same thing happened again and again and again, It was making me frustrated and at that point I even thought that "I'm not gonna write this maths paper anymore." and I stopped for a while trying to relax in that difficult situation which was not possible at that moment. At that time suddenly on my mind a quote came up which was:


      This quote is funny yet enough inspiring to make you realize that you should never give up in life no matter what happen and how hard it is. This realization made me determined to write the paper even after writing repeatedly wrong answers and still correcting those answers and moving forward to write new answers. I told to myself that "I'm going to write the paper and finish it up." and I continued to write my paper.

      After some time the bell rang and the time was over, but still I had not written some answers which totals up to 20 marks out of 80 marks paper. I know that I should feel bad about it that I had not attempted 20 marks of questions but still I was happy to the fact that I tried my best and even when I was about to give up, I continued writing my paper and attempted a whole lot of answers.

      Few months later, results came up and my only tension was whether I got good marks in maths paper or not. I was amazed by the results which came up because I got good marks in my Maths paper even after leaving some questions.

      At that point of time, Life has taught me 1 important lesson that everyone should follow in their life that We Should Never Give Up. Lastly, I should say that,

Tension is bad for your health as well as for the exams.