Green CSE : OCET 2007-2011

Monday, February 27, 2012

!!!..... English Daily ...!!!

  1. Conversations , Stories, Proverbs, Slang, Grammar..........
  2. Verb Tense Tutorial..
  3. English Reading Room
    • Free Online Newspapers
    • Free Online Magazines
    • Free Online Books and Literature
    • Free Online Reference Materials
    • Online Libraries

...... Android OS ....

>>>>> Java >>>>>

Java Hub : java ebooks, jobs etc.,  click here : Java hub


Java : 
  • Java is a programming language originally developed by James Gosling at Sun Microsystems (which has since merged into Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform.
  • Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. 

Object :  An object is a simulation of the real-world entities.
 To work with objects, we should be able to identify three key characteristics of objects:
• The object's behavior— what can you do with this object, or what methods can you apply to it?
• The object's state— how does the object react when you apply those methods?
• The object's identity— how is the object distinguished from others that may have the same
behavior and state?


Class :
  Classes act as templates for the objects. Classes are structures that holds the member fields and member functions of the object.



Sorting Algorithms

Bubble Sort ==> Click here : Definition and Example in Java
Example in C :
#include <stdio.h>
#include <conio.h>
void main( )
{
int arr[5] = { 25, 17, 31, 13, 2 } ;
int i, j, temp ;
clrscr( ) ;
printf ( "Bubble sort.\n" ) ;
printf ( "\nArray before sorting:\n") ;
for ( i = 0 ; i <= 4 ; i++ )
printf ( "%d\t", arr[i] ) ;
for ( i = 0 ; i <= 3 ; i++ )
{
for ( j = 0 ; j <= 3 - i ; j++ )
{
if ( arr[j] > arr[j + 1] )
{
temp = arr[j] ;
arr[j] = arr[j + 1] ;
arr[j + 1] = temp ;
}
}
}
printf ( "\n\nArray after sorting:\n") ;
for ( i = 0 ; i <= 4 ; i++ )
printf ( "%d\t", arr[i] ) ;
getch( ) ;
}


Example in C :
#include <stdio.h>
#include <conio.h>
void main( )
{
int arr[5] = { 25, 17, 31, 13, 2 } ;
int i, j, temp ;
clrscr( ) ;
printf ( "Selection sort.\n" ) ;
printf ( "\nArray before sorting:\n") ;
for ( i = 0 ; i <= 4 ; i++ )
printf ( "%d\t", arr[i] ) ;
for ( i = 0 ; i <= 3 ; i++ )
{
for ( j = i + 1 ; j <= 4 ; j++ )
{
if ( arr[i] > arr[j] )
{
temp = arr[i] ;
arr[i] = arr[j] ;
arr[j] = temp ;
}
}
}
printf ( "\n\nArray after sorting:\n") ;
for ( i = 0 ; i <= 4 ; i++ )
printf ( "%d\t", arr[i] ) ;
getch( ) ;
}


Example in C :
#include <stdio.h>
#include <conio.h>
void main( )
{
int arr[5] = { 25, 17, 31, 13, 2 } ;
int i, j, k, temp ;
clrscr( ) ;
printf ( "Insertion sort.\n" ) ;
printf ( "\nArray before sorting:\n") ;
for ( i = 0 ; i <= 4 ; i++ )
printf ( "%d\t", arr[i] ) ;
for ( i = 1 ; i <= 4 ; i++ )
{
for ( j = 0 ; j < i ; j++ )
{
if ( arr[j] > arr[i] )
{
temp = arr[j] ;
arr[j] = arr[i] ;
for ( k = i ; k > j ; k-- )
arr[k] = arr[k - 1] ;
arr[k + 1] = temp ;
}
}
}
printf ( "\n\nArray after sorting:\n") ;
for ( i = 0 ; i <= 4 ; i++ )
printf ( "%d\t", arr[i] ) ;
getch( ) ;
}

Quick Sort ==> Definition and Example in Java

Example in C :
#include <stdio.h>
#include <conio.h>
int split ( int*, int, int ) ;
void main( )
{
int arr[10] = { 11, 2, 9, 13, 57, 25, 17, 1, 90, 3 } ;
int i ;
void quicksort ( int *, int, int ) ;
clrscr( ) ;
printf ( "Quick sort.\n" ) ;
printf ( "\nArray before sorting:\n") ;
for ( i = 0 ; i <= 9 ; i++ )
printf ( "%d\t", arr[i] ) ;
quicksort ( arr, 0, 9 ) ;
printf ( "\nArray after sorting:\n") ;
for ( i = 0 ; i <= 9 ; i++ )
printf ( "%d\t", arr[i] ) ;
getch( ) ;
}
void quicksort ( int a[ ], int lower, int upper )
{
int i ;
if ( upper > lower )
{
i = split ( a, lower, upper ) ;
quicksort ( a, lower, i - 1 ) ;
quicksort ( a, i + 1, upper ) ;
}
}
int split ( int a[ ], int lower, int upper )
{
int i, p, q, t ;
p = lower + 1 ;
q = upper ;
i = a[lower] ;
while ( q >= p )
{
while ( a[p] < i )
p++ ;
while ( a[q] > i )
q-- ;
if ( q > p )
{
t = a[p] ;
a[p] = a[q] ;
a[q] = t ;
}
}
t = a[lower] ;
a[lower] = a[q] ;
a[q] = t ;
return q ;
}

Merge Sort :

#include <stdio.h>
#include <conio.h>
void main( )
{
int a[5] = { 11, 2, 9, 13, 57 } ;
int b[5] = { 25, 17, 1, 90, 3 } ;
int c[10] ;
int i, j, k, temp ;
clrscr( ) ;
printf ( "Merge sort.\n" ) ;
printf ( "\nFirst array:\n" ) ;
for ( i = 0 ; i <= 4 ; i++ )
printf ( "%d\t", a[i] ) ;
printf ( "\n\nSecond array:\n" ) ;
for ( i = 0 ; i <= 4 ; i++ )
printf ( "%d\t", b[i] ) ;
for ( i = 0 ; i <= 3 ; i++ )
{
for ( j = i + 1 ; j <= 4 ; j++ )
{
if ( a[i] > a[j] )
{
temp = a[i] ;
a[i] = a[j] ;
a[j] = temp ;
}
if ( b[i] > b[j] )
{
temp = b[i] ;
b[i] = b[j] ;
b[j] = temp ;
}
}
}
for ( i = j = k = 0 ; i <= 9 ; )
{
if ( a[j] <= b[k] )
c[i++] = a[j++] ;
else
c[i++] = b[k++] ;
if ( j == 5 || k == 5 )
break ;
}
for ( ; j <= 4 ; )
c[i++] = a[j++] ;
for ( ; k <= 4 ; )
c[i++] = b[k++] ;
printf ( "\n\nArray after sorting:\n") ;
for ( i = 0 ; i <= 9 ; i++ )
printf ( "%d\t", c[i] ) ;
getch( ) ;
}

Heap Sort :

#include <stdio.h>
#include <conio.h>
void makeheap ( int [ ], int ) ;
void heapsort ( int [ ], int ) ;
void main( )
{
int arr[10] = { 11, 2, 9, 13, 57, 25, 17, 1, 90, 3 } ;
int i ;
clrscr( ) ;
printf ( "Heap Sort.\n" ) ;
makeheap ( arr, 10 ) ;
printf ( "\nBefore Sorting:\n" ) ;
for ( i = 0 ; i <= 9 ; i++ )
printf ( "%d\t", arr[i] ) ;
heapsort ( arr, 10 ) ;
printf ( "\nAfter Sorting:\n" ) ;
for ( i = 0 ; i <= 9 ; i++ )
printf ( "%d\t", arr[i] ) ;
getch( );
}
void makeheap ( int x[ ], int n )
{
int i, val, s, f ;
for ( i = 1 ; i < n ; i++ )
{
val = x[i] ;
s = i ;
f = ( s - 1 ) / 2 ;
while ( s > 0 && x[f] < val )
{
x[s] = x[f] ;
s = f ;
f = ( s - 1 ) / 2 ;
}
x[s] = val ;
}
}
void heapsort ( int x[ ], int n )
{
int i, s, f, ivalue ;
for ( i = n - 1 ; i > 0 ; i-- )
{
ivalue = x[i] ;
x[i] = x[0] ;
f = 0 ;
if ( i == 1 )
s = -1 ;
else
s = 1 ;
if ( i > 2 && x[2] > x[1] )
s = 2 ;
while ( s >= 0 && ivalue < x[s] )
{
x[f] = x[s] ;
f = s ;
s = 2 * f + 1 ;
if ( s + 1 <= i - 1 && x[s] < x[s + 1] )
s++ ;
if ( s > i - 1 )
s = -1 ;
}
x[f] = ivalue ;
}
}

Wednesday, January 4, 2012

Microsoft Magic.....!!!!!


MAGIC #1

Found that nobody can create a FOLDER anywhere on the Computer which can be named as "CON". This is something funny and inexplicable? At Microsoft the whole Team, couldn't answer why this happened! TRY IT NOW, IT WILL NOT CREATE A "CON" FOLDER

MAGIC #2

For those of you using Windows, do the following:
1.) Open an empty notepad file
2.) Type "Bush hid the facts" (without the quotes)
3.) Save it as whatever you want.
4.) Close it, and re-open it.
Noticed the weird bug? No one can explain!

MAGIC #3

Again this is something funny and can't be explained?
At Microsoft the whole Team, including Bill Gates, couldn't answer why this happened!
It was discovered by a Brazilian. Try it out yourself?
Open Microsoft Word and type
=rand (200, 99)
And then press ENTER And see the magic?..!

Magic #4

Did you know that a flight number from one of the planes that hit one of the two WTC towers on 9/11 was Q33N. In Notepad / WordPad or MS Word, type that flight number i.e Q33N. Increase the font size to 72. Change the font to Wingdings. ..... u will be amazed by the findings!!

Saturday, November 19, 2011

Indian Government totally online




Indian Government totally online 


All Indian government office related links are available... . Kindly save it......
 
Obtain:

*   Birth Certificate <
http://www.india. gov.in/howdo/ howdoi.php? service=1>
*   Caste Certificate <
http://www.india. gov.in/howdo/ howdoi.php? service=4>
*   Tribe Certificate <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=8>
*   Domicile Certificate <
http://www.india. gov.in/howdo/ howdoi.php? service=5>
*   Driving Licence <
http://www.india. gov.in/howdo/ howdoi..php? service=6>
*   Marriage Certificate <
http://www.india. gov.in/howdo/ howdoi.php? service=3>
*   Death Certificate <
http://www.india. gov.in/howdo/ howdoi.php? service=2>
*   Search More - How do I <
http://www.india. gov.in/howdo/ advancedsearch. php> 
Apply for:

*   PAN Card <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=15>
*   TAN Card <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=3>
*   Ration Card <
http://www.india. gov.in/howdo/ howdoi.php? service=7>
*   Passport <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=2>
*   Inclusion of name in the Electoral Rolls <
http://www.india. gov.in/howdo/ howdoi.php? service=10>
*   Search More - How do I <
http://www.india. gov.in/howdo/ advancedsearch. php> 
Register:

*   Land/Property <
http://www.india. gov.in/howdo/ howdoi.php? service=9>
*   Vehicle <
http://www.india. gov.in/howdo/ howdoi.php? service=13>
*   With State Employment Exchange <
http://www.india. gov.in/howdo/ howdoi.php? service=12>
*   As Employer <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=17>
*   Company <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=19>
*   .IN Domain <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=18>
*   
GOV.IN Domain <http://www.india. gov.in/howdo/ otherservice_ details.php? service=25>
*   Search More - How do I <
http://www.india. gov.in/howdo/ advancedsearch. php> 
Check/Track:

*   Waiting list status for Central Government Housing <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=9>
*   Status of Stolen Vehicles <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=1>
*   Land Records <
http://www.india. gov.in/landrecor ds/index. php>
*   Causelist of Indian Courts <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=7>
*   Court Judgements (JUDIS ) <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=24>
*   Daily Court Orders/Case Status <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=21>
*   Acts of Indian Parliament <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=13>
*   Exam Results <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=16>
*   Speed Post Status <
http://www.india. gov..in/howdo/ otherservice_ details.php? service=10>
*   Agricultural Market Prices Online <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=6>
*   Search More - How do I <
http://www.india. gov.in/howdo/ advancedsearch. php> 
Book/File/Lodge:

*   Train Tickets Online <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=5>
*   Air Tickets Online <
http://www.india. gov..in/howdo/ otherservice_ details.php? service=4>
*   Income Tax Returns <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=12>
*   Complaint with Central Vigilance Commission (CVC) <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=14>
*
   Search More - How do I <http://www.india. gov.in/howdo/ advancedsearch. php> 
Contribute to:

*   Prime Minister's Relief Fund <
http://www..india. gov.in/howdo/ otherservice_ details.php? service=11>
*   Search More - How do I <
http://www.india. gov.in/howdo/ advancedsearch. php> 
Others:

*   Send Letters Electronically <
http://www.india. gov.in/howdo/ otherservice_ details.php? service=20>
*   Search More - How do I <
http://www.india. gov.in/howdo/ advancedsearch. php> 
Recently Added Online Services

*   Tamil Nadu: Online application of marriage certificate for persons having registered their marriages <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2691>
*   Tamil Nadu: Online District wise soil Details of Tamil Nadu <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2693>
*   Tamil Nadu: View Water shed Atlas of Tamil Nadu <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2694>
*   Tamil Nadu: E-Pension District Treasury Tirunelveli <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2695>
*   Meghalaya: Search Electoral Roll Online by Name (2008) <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2697>
*   Meghalaya: Search Electoral Roll Online by EPIC number (2008) <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2698>
*   Meghalaya: Search Electoral Roll Online by House number (2008) <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2699>
*   Himachal Pradesh: Revised Pay and Arrears Calculator-Fifth Pay <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2702>
*   Meghalaya: Search Electoral Roll Online by Part number (2008) <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2700>
*   Andhra Pradesh: Online Motor Driving School Information <
http://www.india. gov.in/howdo/ onlineservice_ detail.php? service=2705>   
Global Navigation 

*   Citizens <
http://www.india. gov.in/citizen. php>
*   Business (External website that opens in a new window) <
http://business. gov.in/>
*   Overseas <
http://www.india. gov.in/overseas. php>
*   Government <
http://www.india. gov.in/govt. php>
*   Know India <
http://www.india. gov.in/knowindia .php>
*   Sectors <
http://www.india. gov.in/sector. php>
*   Directories <
http://www.india. gov.in/directori es.php>
*   Documents <
http://www.india. gov.in/documents .php>
*   Forms <
http://www.india. gov.in/forms/ forms.php>
*   Acts <
http://www.india. gov.in/govt/ acts.php>
*   Rules <
http://www.india. gov.in/govt/ rules.php>
*   Schemes <
http://www.india. gov.in/govt/ schemes.php>
*   Tenders <
http://www.india. gov.in/tenders. php>
*   Home <
http://www.india. gov.in/default. php>
*   About the Portal <
http://www.india. gov.in/aboutthep ortal.php>
*   Site Map <
http://www.india. gov.in/sitemap. php>
*   Link to Us <
http://www.india. gov.in/linktous. php>
*   Suggest to a Friend <
http://www.india. gov.in/suggest/ suggest.php>
*   Help <
http://www.india. gov.in/help. php>
*   Terms of Use <
http://www.india. gov.in/termscond tions.php>
*   Feedback <
http://www.india. gov.in/feedback. php>
*   Contact Us <
http://www.india. gov.in/contactus .php>
*   Accessibility Statement <
http://www.india. gov.in/accessibi litystatement. php>