About Anik Das

https://anikdas.com

Posts by Anik Das:

About anik

Here are my most recent posts

Arduino: Using as a temperature sensor

Folks here I’m back! As usual so much busy days. This time I’m back with some thing new! You might have heard about Arduino (or you might not have). If you have not heard about Adduino it’s time to know about this awesome gadget.

Arduino is an open-source electronic prototyping platform. There are so many versions of it. I have got the Arduino Uno. It has an on-board micro-controller (ATMEGA 328).

Basically you can program Arduino to control the behavior of it. The micro-controller ATMEGA 328 has got 28 pins in it (14 on both the sides). Among them first 7 pins on the left is used for powering up the IC and the last 6 Pins are for analog input and output purpose. The 14 pins on the right are generally used for digital output or input. The arduino board is manufactured in such a way that it can interact with the computer. It has an on-board programmer in it. it can easily be programmed by connecting a USB cable with it!

An Arduino is very much useful for small or medium scale electronics projects. One can actually come out with thousands of projects using a single Arduino board.

In my further posts I will write about the basic setup and How Tos!

So to make you guys feel interested in such cool stuff today I will show you how I actually managed my Arduino to behave as a basic digital temperature meter.

(more…)

Real busy days

I have been very irregular in my blog because of my super hectic schedule! I have been planning to post about many topics but I am hardly being able to tie-up everything! Anyways again I have a plan to post something about windows phone and windows 8 application development. By the way I want to hear from you guys now that is why I added a poll at the end of this post. Cheers guys!
Windows 8 metro UI
windows phone 8
[polldaddy poll=6836001]

Back with C++

Hello guys, it’s been long since I have last written on my blog. This happened due to several changes in my life. First of all, I have already moved from my country to India for study purpose. Moreover, copping up with the environment around me was really a big deal…

Good news is now I am totally familiar with this place. So, now I hope there will be no further problem in connecting to you through my blog :). However, extreme pressure of study might create some delay, I will try my best to post regularly.

Now here in my second semester I have been learning C++ as a course subject. So, this time I will be writing on C++ mainly. I will try to share what I learn.

Err to man. So, I seek advance apologies if I make any mistake in my writing. In case of any doubt, I will try to response as early as possible…

Another thing I want to add that, I am glad to announce that my next project after C++ will be Python programming language. Moreover, hopefully I will also be posting on Android tutorials as well.

Till then, Good bye… 🙂

Happy coding

life

a small note…

This is not the first time I left my home but this is the first time I left my family and fellow friends for a long time…some good feeling, some sweet memories mixed with some magical spell, some best wishes and a new smile of a rising sun are my partner to this journey towards my future. This is not the first time I felt bad, but this time this feelings has mixed with pain. Yes, this is me; Anik who hardly went out of the house, left home for 4 years may be for life time.

(more…)

Snake and Ladder game In java

আমরা ছোট বেলায় অনেকেই সাপ লুডু খেলেছি এবং এখনো খেলতে পছন্দ করি। যুগ বদলেছে আজ আমরা মাঠে খেলার বদলে খেলি কম্পিউটার এর ছোট্টখানি পর্দায়। তাই আমিও চেস্টা করেছি আমাদের ছোট্ট বেলার সেই খেলাটিকে ডিজিটাল পর্দায় নিয়ে আসতে। যদিও আমার এই খেলাটি অত্যন্ত সাধারণ মানের এবং এর কোন গ্রাফিক্যাল অস্তিত্ব নেই তবুও এটা কিন্তু ডিজিটাল।

(more…)

Create run shortcut for your Favorite File

When you need your favorite file to open what do you do? Usually you go to that directory and then open that file. After a certain period of time you get bored of this and ask yourself isn’t there any way to open my most favorite file easily? My answer will be yes.

Here today I will introduce a way through which you will be able to open your favorite file just writing its name in the run command. You just have to follow some easy steps before you are done.

(more…)

Some Java program part 6

  1. Write a Java program that would input three numbers from the user and print sum, then the first number, then the 2nd number followed by 3rd number. If user enters 10, 20, 30. then output should be 60, 10, 20, 30.
import java.util.Scanner;
public class Lab8q4{
  public static void main ( String [] args ){
    int [] number = new int [3];
    int c = 0, sum=0;
    Scanner input = new Scanner ( System.in );
    System.out.println("Enter 3 numbers");
    while(c<3){
      number  = input.nextInt();
      sum = sum + number ;
      ++c;
    }
    System.out.println("SUM : "+sum);
    c=0;
    while(c<3){
      System.out.println(number);
      ++c;
    }
  }
}
  1. Write a Java program that would input ten numbers from the user and print the ten numbers in reverse order. If user enters 20, 10, 30, 15. Then output should be 15, 30, 10, 20.
import java.util.Scanner;
public class Lab8q5{
  public static void main ( String [] args ){
    int [] number = new int [3];
    int c = 0, sum=0;
    Scanner input = new Scanner ( System.in );
    System.out.println("Enter 3 numbers");
    while(c<3){
      number  = input.nextInt();
      sum = sum + number ;
      ++c;
    }
    c=2;
    while(c>=0){
      System.out.println(number);
      --c;
    }
  }
}

(more…)

Some Java programs part 4

16. Write a program that will read 10 numbers from the user, and then print the first number, the sum of the first 2 numbers, first 3 numbers, and so on up to the sum of 20 numbers.

/*Time : 5:00pm
 * Author: Anik das*/
import java.util.Scanner;
public class Faraz16{
  public static void main ( String [] args ){
    int c=1, sum=0, number;
    Scanner input = new Scanner ( System.in );
    while (c<=10){
      System.out.println("Enter Number #"+c);
      number = input.nextInt();
      sum=sum+number;
      System.out.println("Sum Of 1st "+c+" Number(s) is : "+sum);
      c++;
    }
  }
}

(more…)