Search This Blog

Friday, June 10, 2016

Calculator by C code

#include

double tk =0;
//double D_balance=0;
int eEbl_Card()
   {
       //int = kuno kichu purno shonkha buzhay . like as 1, 10 , 12 ,100
       //float= dosmik ase amon shongkha .ebong dosmik er pore 2 ta shongkha thake
    printf("Input your Valu:  ") ;
    scanf("%lf",&tk);
    printf("\nMy present balance: %lf",tk);
   }
   int add_balance()
   {
       double add_balance;
       printf("\ninput value for add: ");
       scanf("%lf",&add_balance);
       tk=tk+add_balance;
       printf("\nbalance after adding: %lf",tk);

   }
   int sub_balance()
   {
       double sub_balance;
        printf("\ninput value for subtruct: ");
       scanf("%lf",&sub_balance);
       tk=tk-sub_balance;
       printf("\nbalance after sudstruction: %lf",tk);

   }
   int multi_balance()
   {
      double multi_balance;
        printf("\ninput value for multiply: ");
       scanf("%lf",&multi_balance);
       tk=tk*multi_balance;
       printf("\nbalance after multiply: %lf",tk);
   }
   int Divide_balance()
   {
     double D_balance=0;
      printf("\ninput value for Divide: ");
       scanf("%lf",&D_balance);
       tk=tk/D_balance;
       printf("\nbalance after divide: %lf",tk);
   }

   int new_entry()
   {
     double tk =0;
     if_else();
   }
   void if_else()
   {
       double addSubMulDiv;
       printf("\nHelp : \nPress 1 for add\nPress 2 for substraction\nPress 3 for Multiply\nPress 4 for Divided \npress 5 for exit\n");
       scanf("%lf",&addSubMulDiv);
       if (addSubMulDiv==1)
       {

         add_balance();
       }

       if (addSubMulDiv==2)
       {

         sub_balance();
       }
       if (addSubMulDiv==3)
       {

         multi_balance();
       }
       if (addSubMulDiv==4)
       {

         Divide_balance();
       }
       if(addsubMulDiv==5)
       {
           new_entry();
       }
return if_else();
   }

// jodi function main er pore likhe tahole proto tpe dite hoy . jodi age tahole prototype dite hoy na .
void main()
{
   printf("CALCULATOR\n") ;
   eEbl_Card();
   //add_balance();
   //sub_balance();
  // multi_balance();
   //Divide_balance();
   if_else();
   new_entry();
   //add_balance();
   //subtruct_balance();


}

Monday, June 6, 2016

Dictionary in Microsoft Office by Default

You can get synonym of any word from Microsoft Office by default by using  Shift+ f7  .  


Monday, May 30, 2016

C# Starting Hello World

### Open Visual Studio and click on *File option take a * New Project then select *Visual C# and *Console Application .

HELLO WORLD  OF C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("hallo world");
        }
    }
}


SUM WITH TOW VARIABLE IN C#



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int a , b , c;
string s;
s = Console.ReadLine();
a = int.Parse(s);
s = Console.ReadLine();
b = int.Parse(s);
c = a + b;

Console.WriteLine("valu of c : "+c);


}
}
}

Saturday, May 28, 2016

C# Tutorial From MVA ( Microsoft Virtual Academy )

C# is a very easy and efficient programing language. Now a days we can do all kind of apps (Windows, android, exe)  and software by only C# . That means it is the multipurpose programming language . I suggest you to start C# from this website tutorial because it is the won tutorial of Microsoft so it can be the best and easiest tutorial to learn C# programming . So lets start to learn C# programming and keep continue .

                                                             https://mva.microsoft.com
                       
                                                                             

Visual Basic tutorial for beginners to developing windows app and software



Visual Basic Easiest Tutorial Ever I seen. A programmer who want to learn Visual Basic Software or Mobile App developing, I thing this tutorial website will very  help-full for him . You can get every things screen short and caption about it step by step .Here is 36 lesson on Visual Basic software developing.I am learning many thinks about Visual Basic soft developing from this website .

 http://www.vbtutor.net .




Tuesday, April 19, 2016

Converting Infix to Postfix code - in C++


#include

#include
#include
#include
using namespace std;

class infix_to_postfix
{

protected:
    string exp;
    string infixexp;
    stack charstack;

    bool prcd(char a, char b)
    {
        return a > b;
    }

   public:
            infix_to_postfix(string str)
            {
                 exp = str;
            }

            void push_to_stack()
            {
                  for(int i = 0; exp[i]; ++i)
                  {
                         if(exp[i] == ' ')
                             continue;

                   if(isalnum(exp[i]))
                   {
                         infixexp += exp[i];
                   }

             else
             {
                      while(!charstack.empty() && prcd(exp[i], charstack.top()))
                      {
                              infixexp += charstack.top();
                               charstack.pop();
                      }

                              charstack.push(exp[i]);
             }
        }

        while(!charstack.empty())
        {
            infixexp += charstack.top();
            charstack.pop();
        }
    }

    string print()
    {
        return infixexp;
    }


   
};

class evaluate {
public:
    evaluate(string str)
    {
        exp = str;
    }

    void peform()
    {
        int res;

        for(int i = 0; i < exp.length(); i++)
        {
            if(isalnum(exp[i]))
            {
                nums.push(exp[i] - '0');
            }
            else
            {
                if(!nums.empty())
                {
                    int a = nums.top();
                    nums.pop();
                    int b = nums.top();
                    nums.pop();

                    res = doit(b, exp[i], a);
                }
                nums.push(res);
            }
        }
    }

    int retres()
    {
        return nums.top();
    }

protected:
    string exp;
    stack nums;

private:
    int doit(int a, char c, int b)
    {
        switch(c)
        {
        case '+':
            return a + b;
            break;

        case '-':
            return a - b;
            break;

        case '*':
            return a * b;
            break;

        case '/':
            return a / b;
            break;
        }
    }
};

int main()
{
    string infixstr;
    infix_to_postfix itop("5 * 2 + 3 * 1 - 9");

    itop.push_to_stack();
    infixstr = itop.print();

    cout << infixstr << endl;

    evaluate ev(infixstr);
    ev.peform();

    int res = ev.retres();

    cout << res << endl;

    return 0;
}

Josephus Problem Solvation code in C++

#include
using namespace std;

struct node{

    int val;
    node *next;
};

void insert_node(int);
void print();
void josephus(int);
node *head,*nptr,*tptr;

int main(){

    head = NULL;
    int start,n;
    cout << "Enter node number: " << endl;
    cin >> n;
    insert_node(n);
    cout << "The persons are:" << endl;
    print();
    cout << "Enter start number: " << endl;
    cin >> start;
    josephus(start);
    return 0;
}

void josephus(int start){

    node *ptr,*qptr;
    qptr = ptr = head;
    for (int i = 1; i < start; i++){

            ptr = ptr->next;
            qptr = ptr;
    }
    while (ptr->next != ptr){

        qptr->next = ptr->next->next;
        ptr = qptr->next;
        qptr = ptr;
    }
    head =  ptr;
    cout << "The person survived is :" << ptr->val << endl;
}
void insert_node (int n){

    for(int i = 0; i < n; i++){

        nptr = new node;
        nptr->val = i+1;
        nptr->next = NULL;
        if (head == NULL){

            head = nptr;
            tptr = nptr;
        }
        else{

            tptr->next = nptr;
            tptr = nptr;
        }
    }
    tptr->next = head;
}
void print(){

    tptr = head;
    cout << tptr->val << "->";
    tptr = tptr->next;
    while (head != tptr){

        cout << tptr->val << "->";
        tptr = tptr->next;
    }
    cout<< endl;
}

Operations Management Banner



     My made Operations Managements Banner by Adobe Illustrator CS





Sunday, April 17, 2016

Get back your sent Mail instantly and sent undo in Gmail .

You sand a mail to some one but after sent the mail you think there is some thing wrong in your mail. But you have nothing to do . But this time you can UNDO your sent mail instantly . Here the sequence are given to enable UNDO sent mail .
1. Go to Setting
2. Enable Undo send with 10 second .
3. Click Save Change button . 


Now you can see UNDO after sent every mail .When you was "Your message has been sent " .

Thank you .

Wednesday, April 6, 2016

I was a Trainer at Microsoft A2I Program at Gopalganj .

I was a trainer in Microsoft A2I  program at Gopalganj DC office at 30 to 31 March 2016 . There was almost 45 women union Digital shop organizer in  hall . The Deputy Commissionaire of Gopalganj Distric was the chief guest . I am and one of my brother take two days log training of these  women's about Microsoft product ,basic computer knowledge , troubleshooting ,internet using and many other motivational task . And after all we took a exam from our training period and give all women Certificates . Really this two days was a big experience of my life .

Here I share some photos of training secession .


                           

                         




Cricket Score Keeper a Android apk .

I just 80% complete my first android application . It's about Cricket Scoring .You can score a full Cricket match by this application .There are a lot of button for scoring , you have to use this button for scoring . And use your common seance .
It is updating day by day .

Thank You
 
                                                                  Download

Create a Form Using Python for Save Data into Excel like a Database

#Download Pyhton from here https://www.python.org/downloads/  #Download Python: #Click the “Download Python 3.x.x” button (the latest versio...