Monday, 15 December 2014

Open the private pics of Facebook DP

graph.facebook.com/USERNAME/picture?width=2000&height=2000

Open the link and replace the USERNAME with the username of the facebook profile that you want to view its private image and press ENTER

There you go... Enjoy and comment your views....

Sunday, 23 November 2014

If
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Is equal to
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Then
H+A+R+D+W+O+R+K =
8+1+18+4+23+15+18+11 =
98%
K+N+O+W+L+E+D+G+E =
11+14+15+23+12+5+4+7+5 =
96%
L+O+V+E=
12+15+22+5=
54%
L+U+C+K =
12+21+3+11 =
47%
None of them makes 100%
Then what makes 100% ???
Is it Money?
NO !!!
Leadership?
NO !!!
Every problem has a solution,
only if we perhaps change our
"ATTITUDE".
It is OUR ATTITUDE towards Life and Work that makes
OUR Life 100% Successful..
A+T+T+I+T+U+D+E =
1+20+20+9+20+21+4+5 =
100%

Ultrasonic Sensor

The ultrasonic transmitter operates at a frequency of about 40 Kilo-Hertz. That means it continuously transmits the ultrasonic waves of about 40KHz. The power supply should be moderate such that the range of the transmitter is only about one or two meters. If the transmitting power is less than one meter, then there is a chance that the person who is one meter away is not detected. Also, if the range is set to be very large, then it may lead to false triggering, meaning that, the objects far away from our door are considered as the visitors and the alarm rings. This can be a nuisance for us if the alarm rings for every object or person far away. So, to avoid both the problems, the transmitting power is kept to an optimum level.


The ultrasonic receiver module receives the power at the frequency same as that of the transmitter’s so that noise will be eliminated and we get less false triggering. The sensitivity of the receiver can be tuned by using the 500K-ohm variable resistor arranged as a pot in the circuit. By tuning this properly, we can achieve the desired results. The output of our circuit is given to a buzzer circuit which acts as a doorbell in our case. The receiver in this circuit uses IC LM324 which is internally has four op-amps. Out of the four op-amps, we are using only four of them and leaving the other one unused as it is not much required in our case. The three op-amps are used in cascaded arrangement to provide high gain as well as noise free output.

Automatic Doorbell using Object Detection

Digital Logic Design
Automatic Doorbell Using Object detection
Basic Principle:
            We all have a doorbell at our homes. When a visitor comes to our house, he searches for the doorbell switch and then rings it to let us know his presence. If the who came to our house cannot find the doorbell or else if the person is so short that he cannot reach the doorbell, what can be done?  If we install this automatic doorbell using object detection circuit, the circuit will automatically sense the presence of the person and it rings the doorbell.
Components Used:
·         Transistors
·         Led
·         555 Timer
·         LM 324
·         Potentiometer
·         Ultrasonic Sensor ( Transmitter and Receiver )
·         Capacitors
·         Battery

Working:
This circuit operates using a pair of ultrasonic transmitter and receiver modules which are used to detect the person and then if the person is detected, the doorbell is automatically turned ON when the person is in-front of the door.




Circuit Diagram:

Applications of this Project:
The Application of this project is that if a person is standing near the door and he is not able to ring the bell then this circuit automatically rings the doorbell if the person is detected.
The ultrasonic sensors used in this project are capable of detecting objects.
This idea can also be used in Automatic Car Parking System that is when an object is detected near the car bumper than it generates an automatic bell that the driver has to stop the car.

The range of object detection can be changed using the potentiometer. The other technique to increase the range of object detection is using the higher range ultrasonic sensor.

Sunday, 16 November 2014

Database for institution C++ Project

#include <iostream.>
#include <conio.h>
using namespace std;
class members
{
  protected:
      int sno;
      char name[20];
  public:
      void getmembers(void)
      {
    cout<<"\n\nEnter Serial Number: ";
    cin>>sno;
    cout<<"Enter name: ";
    cin>>name;
      }
      void dispmembers(void)
      {
cout<<"\nSerial Number: "<<sno;
cout<<"\nNAME: "<<name;
 }
};

class faculty : public members
{
      char sub[20];
      char desg[20];
  public:
      void create(void)
      {
    getmembers();
    cout<<"Enter Subject: ";
    cin>>sub;
cout<<"Enter Designation: ";
    cin>>desg;
      }
      void display(void)
      {
     dispmembers();
     cout<<"\nSUBJECT: "<<sub;
     cout<<"\nDESIGNATION: "<<desg;
      }
};

class student : public members
{
       char grade;
  int year;
   public:
    void create(void)
    {
       getmembers();
       cout<<"Enter Grade: ";
       cin>>grade;
  cout<<"Enter Admission Year: ";
  cin>>year;
    }
    void display(void)
    {
       dispmembers();
       cout<<"\nGRADE: "<<grade;
  cout<<"\nYEAR: "<<year;
    }
};

class admin : public members
{
        char desg[20];
  public:
      void getadmin(void)
      {
    getmembers();
    cout<<"Enter Designation: ";
    cin>>desg;
      }
      void dispadmin(void)
      {
    dispmembers();
    cout<<"\nDESINATION: "<<desg;
      }
};


class casual : public admin
{
     float dailywages;
   public:
       void create(void)
    {
      getadmin();
      cout<<"Enter Daily Wages: ";
      cin>>dailywages;
    }
    void display(void)
    {
      dispadmin();
      cout<<"\nDAILY WAGES: "<<dailywages;
    }
};

void main()
{

faculty o1t[10];
casual  o1c[10];
student  o1o[10];
int choice,i;
char test;
while(1)
{
int count;
start:

   cout<<"\n=====APCOMS INSTITUTION DATABASE=====\n\n\n";
   cout<<"Choose Category of Information\n";
   cout<<"1)   Faculty\n";
   cout<<"2)   Student\n";
   cout<<"3)   Admin\n";
   cout<<"4)   Exit\n";
   cout<<"Enter your choice: ";
   cin>>choice;
   switch(choice)
   {
      case 1 :  while(1)
        {

        cout<<"\n=====Faculty INFORMATION=====\n\n";
        cout<<"\nChoose your choice\n";
        cout<<"1) Create\n";
        cout<<"2) Display\n";
        cout<<"3) Jump to Main Menu\n";
        cout<<"Enter your choice: ";
        cin>>choice;
        switch(choice)
        {
         case 1 :  for(count=0,i=0;i<10;i++)
               {
                 cout<<endl;
                 o1t[i].create();
                 count++;
                 cout<<endl;
                 cout<<"\n\nAre you Interested in entering data\n";
                 cout<<"Enter y or n: ";
                 cin>>test;
                 if(test=='y' || test=='Y')
                continue;
                 else goto out1;
                 }
                 out1:
                 break;
         case 2 : for(i=0;i<count;i++)
               {
                cout<<endl;
                 o1t[i].display();
                 cout<<endl;
               }
               getch();
               break;
         case 3 : goto start;
         default: cout<<"\nEnter choice is invalid\ntry again\n\n";
         }
         }
      case 2 :   while(1)
         {
       
        cout<<"\n=====Student INFORMATION=====\n\n";
        cout<<"\nChoose your choice\n";
        cout<<"1) Create\n";
        cout<<"2) Display\n";
        cout<<"3) Jump to Main Menu\n";
        cout<<"Enter your choice: ";
        cin>>choice;
        switch(choice)
        {
         case 1 : for(count=0,i=0;i<10;i++)
               {
                cout<<endl;
                o1o[i].create();
                 count++;
                 cout<<endl;
                 cout<<"\n\nAre you Interested in entering data\n";
                 cout<<"Enter y or n: ";
                 cin>>test;
                 if(test=='y' || test=='Y')
                continue;
                 else goto out2;
                 }
                 out2:
                 break;
         case 2 : for(i=0;i<count;i++)
               {
                cout<<endl;
                 o1o[i].display();
                 cout<<endl;
               }
               getch();
               break;
         case 3 : goto start;
         default: cout<<"\nInvalid choice\ntry again\n\n";
         }
         }
      case 3 :  while(1)
        {
   
        cout<<"\n=====admin INFORMATION=====\n\n";
        cout<<"\nChoose your choice\n";
        cout<<"1) Create\n";
        cout<<"2) Display\n";
        cout<<"3) Jump to Main Menu\n";
        cout<<"Enter your choice: ";
        cin>>choice;
        switch(choice)
        {
         case 1 : for(count=0,i=0;i<10;i++)
               {
                 cout<<endl;
                 o1c[i].create();
                 count++;
                 cout<<endl;
                 cout<<"\n\nAre you Interested in entering data\n";
                 cout<<"Enter y or n: ";
                 cin>>test;
                 if(test=='y' || test=='Y')
                continue;
                 else goto out3;
                 }
                 out3:
                 break;
         case 2 : for(i=0;i<count;i++)
               {
                 cout<<endl;
                 o1c[i].display();
                 cout<<endl;
               }
               getch();
               break;
         case 3 : goto start;
         default: cout<<"\nInvalid choice\ntry again\n\n";
         }
         }
      case 4 : goto end;
    }
 }
 end:;

}

C++ Codes

Object Oriented Programming
Assignment # 01

Q1: What is the principle advantage of an un-sized array?
ANS:
            The Advantage of an un-sized array is that we can save number of elements in array by our choice as by defining the array we are restricted to use only the desired size of an array.







Q2: Explain the difference between the prefix and postfix form of increment operator?
ANS:
            The difference between prefix and postfix is that prefix increment operator increment the number first and then print it.
While in case of postfix increment operator it print the number first and then made an increment.






Q3: Write a program that averages the absolute value of first ten values entered by user. Display the result.

ANS:
            Program Code:
#include <iostream>
using namespace std;
int main()
{
int arr[10];
int i,j;
float sum,avg;
sum=0;
for(i=0;i<10;i++)
{
            cout<<"Enter the array's "<<i<<" element: ";
            cin>>arr[i];
            sum=sum+arr[i];
}
avg=sum/10;
cout<<"The Average is "<<avg<<endl;
}





Q4: Write a program that finds all the prime number between 1 to 100. Display the result.
ANS:
            Program Code:
#include <iostream>
using namespace std;
int main ()
{
    for (int i=2; i<100; i++)
        for (int j=2; j<i; j++)
        {
            if (i % j == 0)
                break;
            else if (i == j+1)
                cout <<"Prime Numbers are "<< i <<endl;

        }  
    return 0;
}




Q5: Write a program that…….. ? ?
ANS:
            Program Code:
#include <iostream>
using namespace std;
void main()
{int i,j,k,l;
k=00;
l=00;
for(i=0;i<6;i++)
{
cout<<endl<<"  "<<k;
l=k+1;
k=k+10;
for(j=0;j<5;j++)
{
cout<<"  "<<l;
l=l+1;
}}cout<<endl;}



C++ ProgrAMS

Q1. Write a program that will take input of two numbers from user and will show result of addition, subtraction, multiplication, division and remainder.

Program Code:
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
float x,y,z;
      cout<< "Enter a Number: ";
cin>> x;
cout<<"Enter another Number: ";
cin>>y;
z=x+y;
cout<<"Addition is "<<z<<endl;
z=x-y;
cout<<"Subtraction is "<<z<<endl;
z=x*y;
cout<<"Multiplication is "<<z<<endl;
z=x/y;
cout<<"Division is "<<z<<endl;
getche ();
return 0;
}





Q2. Write a program that will take two inputs in Kilogram and Height of a person and program will calculate its BMI (body mass index).Display BMI as output.

Program Code:

#include <iostream>
#include <conio.h>
using namespace std;
void main()
{
      float x,y,z,d;
      cout<<"Enter mass in kg: ";
      cin>>x;
      cout<<"Enter Height in cm: ";
      cin>>y;
      z=y/100;
      d=x/(z*z);
      cout<<"Body Mass Index(BMI) = "<<d;
      getche();

}














Q3. Write a program that will take input cm (centimeter) value from user and program will convert in
            Inches
            Foot
            Meter
            Yard
            Kilometer
            Miles
Display all these values as output.

Program Code:
#include <iostream>
#include <conio.h>
#include <math.h>
using namespace std;
int main()
{float x,y;
cout<<"Enter a number in cm: ";
cin>>x;
y=x*0.39370;
cout<<"The Number in inches is "<<y<<endl;
y=x * 0.032808;
cout<<"The Number in Foot is "<<y<<endl;
y=x/100;
cout<<"The Number in meters is "<<y<<endl;
y=x * 0.010936;
cout<<"The Number in Yards is "<<y<<endl;
y=x/100000;
cout<<"The Number in Km is "<<y<<endl;
y=x/160000;
cout<<"The Number in Mile is "<<y<<endl;
getche ();
return 0;
}

Q3. Write a program that will take input currency in Dollars and will convert in
            Rupees
            Ponds
            Euro
            Dinar
            Riyal

Display all these as output.

Program Code:
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{float x,y;
cout<<"Enter the currency in DOLLARS: ";
cin>>x;
y=x*102.12;
cout<<"The currency in Rupees is "<<y<<endl;
y=x * 0.62;
cout<<"The currency in Pound is "<<y<<endl;
y=x*0.78;
cout<<"The currency in Euro is "<<y<<endl;
y=x * 1162;
cout<<"The currency in Iraqi Dinar is "<<y<<endl;
y=x*3.75;
cout<<"The currency in Saudi Riyal is "<<y<<endl;
getche ();
return 0;
}



Q6. Write a program that will take your subject marks and will calculate your CGPA.
       For this purpose you need to search formula that will help you to calculate CGPA.

Program Code:
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{float x,y,z;
float cal,ap,wp,lca,isl,cf,bme,edc,ems,la,ode,cad;
cout<<"Enter the grade in Calculus ";
cin>>cal;
cout<<"Enter the grade in Applied Physics ";
cin>>ap;
cout<<"Enter the grade in Workshop ";
cin>>wp;
cout<<"Enter the grade in LCA ";
cin>>lca;
cout<<"Enter the grade in Islamiat ";
cin>>isl;
cout<<"Enter the grade in Computer Fundamentals ";
cin>>cf;
cout<<"Enter the grade in BME ";
cin>>bme;
cout<<"Enter the grade in EDC ";
cin>>edc;
cout<<"Enter the grade in EMS ";
cin>>ems;
cout<<"Enter the grade in LA ";
cin>>la;
cout<<"Enter the grade in ODE ";
cin>>ode;
cout<<"Enter the grade in CAD ";
cin>>cad;
y=(cf*3+isl*2+wp*2+ap*4+cal*3+lca*4)/18;
cout<<"The Spga in 1st Semester is "<<y<<endl;
z=(bme*3+edc*4+ems*4+ode*3+la*3+cad*1)/18;
cout<<"The Spga in 2nd Semester is "<<z<<endl;
x=(y+z)/2;
cout<<"The Cgpa is "<<x<<endl;
      getche ();
      return 0;
}






Program for Calculator of arithmatic operation:

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{char operation;
int a,b;
      cout<<"Enter first Number: ";
      cin>>a;
      cout<<"Enter second Number: ";
      cin>>b;
      cout<<"Enter an operation arithmatic operation do you want: ";
      cin>>operation;
      switch (operation)
      {
      case '+' :
           
            cout<<"The Addition of numbers= "<<a+b;
            break;
      case '-':
      cout<<" The Subtraction of numbers= "<<a-b;
            break;
      case '*':
            cout<<"The Multiplication of numbers= "<<a*b;
            break;
      case '/':
            cout<<"The Division of numbers= "<<a/b<<endl;
            break;
      }
      getche ();
      return 0;
}



Calculator Using If-else Statement:
Program Code;
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{float x,y,z;
int operation;
cout<<"Enter a Number:";
cin>>x;
cout<<"Enter another Number:";
cin>>y;
cout<<"Enter 1 for Addition, 2 for Subtraction"<<endl<<"      3 for Multiplication, 4 for Division ";
cin>>operation;
if (operation ==1)
{cout<<"The Addition is "<<x+y<<endl;}
else
if(operation == 2)
{cout<<"The Subtraction is "<<x-y<<endl;}
else
if(operation == 3)
{cout<<"The Product is "<<x*y<<endl;}
else
{cout<<"The Division is "<<x/y<<endl;}
getche ();
return 0;
}


Binary Options Trading Signals Live!

advertise

Make Money With Google - 7 Day Test Trial!

Powered By Blogger

Total Pageviews

Powered by Blogger.

Translate

Search This Blog

Visitors

Configurar Mikrotik Wireless Como Un Experto (view mobile)

 

© 2013 All in One. All rights resevered. Designed by Templateism

Back To Top