Earn by twitter on twivert

Sign up for PayPal and start accepting credit card payments instantly.

Sunday, April 18, 2010

WAP of Password security


'WAP of Password security

'controls       Property        Setting

'Textbox1        Name            txt
'                Caption           -
                
'Label1          Name            lbl
 '               Caption          Enter Password

'command1        Name            cmdOk
'                Caption           OK

'command2        Name            cmdCancel
'                Caption           Cancel
          
'-----------------------------------------------------
'                        CODE

Private Sub cmdOk_click()
If txt.text="123" Then
msgbox("Welcome")
else
msgbox("Wrong Password - enter 123")
End IF
End Sub

Private Sub cmdCancel_click()
End
End Sub

Display div of array elements


/*Display div of array elements*/
/*Save File as: array_Div.java*/

import java.lang.*;
class Array
{
   int l[];
   int x[];
   int y[];
   Array()
   {
   l=new int[]{1,2,3,4,5};
   x=new int[]{2,3,4,5,6};
   y=new int[5];
   }
   void display()
   {
   System.out.println("The addition of array is ");
   for(int i=0;i<5;i++)
   {
   y[i]=l[i]/x[i];
   System.out.println(y[i]);
   }
   }
}

class array_Div
{
   public static void main(String arg[])
   {
   Array A = new Array();
   A.display();
   }
}

WAP to check leap year


/*WAP to check leap year*/

#include<stdio.h>
#include<conio.h>
void main()
{
 int a;
 clrscr();
 printf("enter year");
 scanf("%d",&a);
 if(a%4==0)
 printf("year is leap");
 else
 printf("year is'not leap");

 getch();
 }

WAP to check enter character is Alphabat,digits or any special char.


/*WAP to check enter character is Alphabat,digits or any special char.*/

#include<stdio.h>
#include<conio.h>
void main()
{
 char any;
 clrscr();
 printf("enter any character");
 scanf("%c", &any);
 if(any>=48&&any<=57)
 {
 printf("it is digit");
 }
 else
 if(any>=97&&any<=122)
 {
 printf("it is lowercase alphabat");
 }
 else
 if(any>=65&&any<=90)
 {
 printf("it is upper case alphabat");
 }
 else
 if(any>=32&&any<=47)
 {
 printf("it is special symbol");
 }
 else
 if(any>=58&&any<=64)
 {
 printf("it is special symbol");
 }
 else
 if(any>=91&&any<=96)
 {
 printf("it is special symbol");
 }
 else
 if(any>=123&&any<=127)
 {
 printf("it is special symbol");
 }
getch();
}

ADS

How to earn online

How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786

AddMe

Bookmark and Share