1) Tree Representation
2)Family Representation
3)Who is Proud problem?
4)Hoofer's Club Problem
5)List Operatins-Union, Intersection,Append,Reversing,Max,Min Element
6)Arithmetic Operations
7)Conversion from degree Celcius to degree Fahrenheit
8)Factorial
9)Criminal of West Problem
10)DFA- To check if given string is acceptable or not?
11)Monkey Banana Problem
12)Nani Search Problem
13)Towers of Hanoi
14)Animal Identification Problem
skip to main |
skip to sidebar
Download
Finally the final semester hope All's Well That Ends Well
Thursday, February 18, 2010
Saturday, February 13, 2010
Enterprise Resource Planning Slides
Official Slides from Alexis Leon
Download
Individual Slides
Each slide correspond to particular chapter of the book
Part I - Introduction
| ||
Part II - ERP and Technology
| ||
Part III - ERP Implementation
| ||
Part IV - ERP in Action
| ||
Part V - The Business Modules
| ||
Part VI - The ERP Market
| ||
Part VII - ERP—Present and Future
|
Wednesday, February 10, 2010
Thursday, February 4, 2010
Network Security Experiment 1
/*
Following is a Java program to check strength of password entered by user utilizing following parameters
a)Combination of alphabets with digits & special symbols
b)Length of password
c)Repetition of characters in password
This program uses HashTable to store frequency of characters.
*/
import java.io.*;
import java.util.Hashtable;
import java.util.Enumeration;
/**
* @author Pawan Singh
*
*/
public class passwordStrength {
public static void main(String[] args) throws IOException {
System.out.println("Enter password: ");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String password=br.readLine();
int strength=passwordStrength.checkStrength(password);
// checkStrength static method called
System.out.println("Strength is "+strength+" out of 100");
if (strength<0)
System.out.println("Very Weak Password");
else if (strength<34)
System.out.println("Weak Password");
else if(strength<68)
System.out.println("Good Password");
else
System.out.println("Strong Password");
}
static public int checkStrength(String password)
{
int strength;
//Initially parameter evaluation
int len =password.length(),no_of_digits=0,no_of_alpha=0,no_of_spl=0;
Hashtable freq = new Hashtable ();
char c;
Integer t;
for(int i=0;i
{
//Evaluating number of types of characters
c=password.charAt(i);
if (Character.isDigit(c))
no_of_digits++;
else if (Character.isLetter(c))
no_of_alpha++;
else
no_of_spl++;
if (!freq.containsKey(c))
freq.put(c, 1);
else
{
t=freq.get(c);
freq.remove(c);
freq.put(c,t+1);
}
//End of for loop
}
//Finally Evaluation of strength
strength=len*4;
Enumeration e=freq.keys();
while(e.hasMoreElements())
{
c=(Character)e.nextElement();
if( freq.get(c)>1)
{
strength-=5*(Integer)freq.get(c);//Reduction on behalf of repetition
}
//End of loop
}
if (no_of_digits>2)
strength+=5;
if(no_of_spl>2)
strength+=10;
if(no_of_digits>0 && no_of_alpha>0)
strength+=15;
if(no_of_digits>0 && no_of_spl>0)
strength+=15;
if(no_of_spl>0 && no_of_alpha>0)
strength+=15;
if(no_of_alpha==0 && no_of_spl==0)
strength-=15;
if(no_of_digits==0 && no_of_spl==0)
strength-=20;
if(strength>100)
strength=100;
return strength;
}
}
Following is a Java program to check strength of password entered by user utilizing following parameters
a)Combination of alphabets with digits & special symbols
b)Length of password
c)Repetition of characters in password
This program uses HashTable to store frequency of characters.
*/
import java.io.*;
import java.util.Hashtable;
import java.util.Enumeration;
/**
* @author Pawan Singh
*
*/
public class passwordStrength {
public static void main(String[] args) throws IOException {
System.out.println("Enter password: ");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String password=br.readLine();
int strength=passwordStrength.checkStrength(password);
// checkStrength static method called
System.out.println("Strength is "+strength+" out of 100");
if (strength<0)
System.out.println("Very Weak Password");
else if (strength<34)
System.out.println("Weak Password");
else if(strength<68)
System.out.println("Good Password");
else
System.out.println("Strong Password");
}
static public int checkStrength(String password)
{
int strength;
//Initially parameter evaluation
int len =password.length(),no_of_digits=0,no_of_alpha=0,no_of_spl=0;
Hashtable
char c;
Integer t;
for(int i=0;i
{
//Evaluating number of types of characters
c=password.charAt(i);
if (Character.isDigit(c))
no_of_digits++;
else if (Character.isLetter(c))
no_of_alpha++;
else
no_of_spl++;
if (!freq.containsKey(c))
freq.put(c, 1);
else
{
t=freq.get(c);
freq.remove(c);
freq.put(c,t+1);
}
//End of for loop
}
//Finally Evaluation of strength
strength=len*4;
Enumeration e=freq.keys();
while(e.hasMoreElements())
{
c=(Character)e.nextElement();
if( freq.get(c)>1)
{
strength-=5*(Integer)freq.get(c);//Reduction on behalf of repetition
}
//End of loop
}
if (no_of_digits>2)
strength+=5;
if(no_of_spl>2)
strength+=10;
if(no_of_digits>0 && no_of_alpha>0)
strength+=15;
if(no_of_digits>0 && no_of_spl>0)
strength+=15;
if(no_of_spl>0 && no_of_alpha>0)
strength+=15;
if(no_of_alpha==0 && no_of_spl==0)
strength-=15;
if(no_of_digits==0 && no_of_spl==0)
strength-=20;
if(strength>100)
strength=100;
return strength;
}
}
8th Sem Syllabus
7th Semester Posts
Internet and Multimedia
(6)
Notice
(4)
Placement
(4)
Network Programming
(2)
Cryptography
(1)
Matlab
(1)
Operation Research
(1)
VB.NET
(1)
eBooks
(1)