Wednesday, April 11, 2012

Signs of aged world counting its Daya - Part 2

I've already posted a news regarding EarthQuake occured. Now its again happened on 20-03-2012.
It is 8.9.. Whoo!
God Bless Us.

Tuesday, July 6, 2010

PETROL IS WASTED IN THIS WAY ALSO

Petrol is wasted in many ways in this world. One simple example,
In many house each individual use separate vehicle instead of one common vehicle, most of the times.
Instead of using public vehicle we all use separate vehicle for us all the times.

    So there is large amount on increase in the number of vehicles everyday.

I use a vehicle for my home purposes.That vehicle is used by my family members also. But I have planned to buy a vehicle for me when i start to earn. So I dont think getting a separate vehicle for our own use is unstoppable. But using it occasionally and during only urgent use is reasonable. I do the same almost all my days until now.

What i want to discuss with you all is,
You can see this incident happening in most of the petrol bunks.

We can see that atleast one drop of petrol is being poured near the petrol tank's mouth of our vehicles because of urgency and also more than 2 ml petrol is wasted like this per vehicle during peak(office) hours as there is a long queue of vehicles standing in the petrol bunk.They wants to satisfy all the customers and also we want to be filled it very quick as we are late to the office and other work.
Metric says that 1 drop = 0.05ml(20 drops per millilitre.
Census shows that average petrol consumption is more than 1,000,000

And the number of VEHICLES is you can imagine it. My opinion is atleast near 50% of the total population. Check this site for vehicle population
So petrol wasted is nearly 0.05 * 100000 is 5000 Litres per day. 

Clcik this link to check the average number of vehicles
http://www.cbc.ca/fifth/roadwarriors/trends.html.
 
Now just think if the petrol is wasted for every litre for almost 1crore vehicle for every 5 crore people then each day then the result of petrol wasted is to be taken into mind. These resources are dereasing each and everday. I want all of you to use it in a best way without even wasting a drop. Pkease be sure that you are not urgent and also the workers are not urgent to stop wasting petrol in this way.

Friday, July 2, 2010

ENHANCE YOUR GENERAL KNOWLEDGE

  • GSM     - Global Satellite Mobile
  • CDMA  - Code Division Multiple Access
  • GPS       - Global Positioning System
  • GPRS    - General Packet Radio Service
  • 3G          - 3'rd Generation
  • SIM       - Subscription Identification Module
  • WAP      - Wireless Application Protocol

GUYS CHECK YOUR CONCENTRATION BY PLAYING THIS GAME

I have submitted a simple game to test your concentration in any form of work.

As it is not possible to upload files in the blog I uploaded it in a different site. Download the game and play and pass it to all your friends.

Click the Link to Download : http://www.mediafire.com/?vdy2yo3mj1l

Install the SHOCKER.EXE SETUP and play the game.
Dont forget to leave a reply...:-)
(THIS PROGRAM NEEDS DotNet Framework 2.0 FOR EXECUTION. Click the below Link to Download)

Click Here

Tuesday, June 22, 2010

Program to Print the number words in a string and Print in a Specified Format

#include"iostream.h"

void main()
{
 char a[100];
 int i=0,j=0,n[10],wn=0,count=0,n1[10] = {0,0,0,0,0,0,0,0,0,0},n2;
 clrscr();
 printf("\n PLEASE END THE STRING BY USING ( . ) SYMBOL TO GET THE CORRECT OUTPUT\n\n   ");
 gets(a);
 while(a[i] != '\0')
 {
  if(a[i] == ' ' || a[i] =='.')
  {
   n[j] = i-wn;
   wn = i+1;
   j++;
   count++;
  }
  i++;
 }

 cout <<"\n NUMBER OF WORDS : "<<"\n";

 for(i=0;i < count;i++)
 {
   n2 = n[i];
   n1[n2]++;
 }

 for(i=1;i < 10;i++)
 {
  cout << "\n NUMBER OF "<<  i <<" LETTER WORD : " <
 }
 getch();
}



INPUT
PLEASE END THE STRING BY USING ( . ) SYMBOL TO GET THE CORRECT OUTPUT
I AM HAPPY.
(END THE STRING WITH . SYMBOL)


OUTPUT WILL BE LIKE THIS
NUMBER OF 1 LETTER WORD 1
NUMBER OF 2 LETTER WORD 1
NUMBER OF 3 LETTER WORD 0
NUMBER OF 4 LETTER WORD 0
NUMBER OF 5LETTER WORD  1
NUMBER OF 6 LETTER WORD 0

Sunday, June 13, 2010

Signs Of Aged World Counting Its Days...!???

A mild earthquake (tremor) has been reported in various parts of Chennai in the early morning on Sunday, June 13, 2010. The tremor lasted for about 15-20 seconds and it was felt in areas including Chintadripet, Thiruvanmiyur, Santhome, Choolaimedu, Koyambedu, Royapettah and Aminjikarai.


After the Earthquake A few mins later all the persons sleeping in Marina Beach were cleared as there is Tsunami warning all over 7 countries in the world. Actually this ia a tremor felt in Chennai and other regions due to 7.7 Earthquake in Nicobar Islands.

Several parts of Sri Lanka experienced tremors following the earthquake, according to the head of the country's Geology and Mines Bureau, D Wijayananda.

Tuesday, June 1, 2010

PALINDROME PROGRAM IN C++ WITH EXPLANATION.. This will be correct logic which everyone expects



 What we have to do is
i)                    Find the length of the string
ii)                   Divide the length of the string by 2. Because from the first element in the array we should go until the predecessor of middle element and then from the last we go until the successor of the middle element Take this as an example
If this is the input string “LIRIL”. Here the middle element is a[3] = ‘R’, to find whether it is palindrome or not we should check as given in the diagram. Then we should compare the last element and with the first element. Like        

1.      We check the last element a[5] and the first element a[1].
2.      We check the second from the first a[2] with the second from the last a[4].
              
                  Middle element need not to be checked because it positions will not be changed if the string is reversed. This the logic behind this program.

If the length of the string is even( EG, 4 OR 8 OR 10) then there will be no middle element as given in the above example.

For eg) for the string “KAIL

                        

void main()
{
 int i,j,n=0,n1,cnt=0;
 char a[20];
 clrscr();
 printf("\n ENTER THE STRING : ");
 cin>>a;

// Here we get calculate the length of the string
 while(a[n]!='\0')
 {
 n =n+1;
 }
// Completes here

// To find the middle value. If the length is a even number it takes the value 0.
 n1 = n/2;
//completes here

/* This loop check the a[i] before n1 with a[j] until before n1. Remember a[i] starts from the first and b[j] starts from the last index */

for(i=0,j=n-1; i < n1 && j  >  n1; i++, j--)
 {
   if(a[i] == a[j])
    cnt++;
  else
  {
   printf("\n THE STRING IS NOT A PALINDROME");
   break;
  }
 }
 if(cnt == n1)
  printf("\n THE STRING IS A PALINDROME");
getch();
}

Sunday, May 30, 2010

Genius in Computer can answer for this question

In Windows Operating System

You cannot create a folder in any part of the computer with the name 'con'.
                           Create a new folder by Right Click-> New -> Folder

                           Then Right Click on it and check whether you can change it to the name 'con'.

I do not know the REASON for this. If you can,answer me.

All your suggestions are most welcome.