High Low Game

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<process.h>
#include<dos.h>

void main()
{
textbackground(WHITE);
textcolor(RED);
     C: clrscr();

 char ch,a[20],ch2;
 int num=100,rnum,guess,count,ch1,c=0;
 cout<<"\n\t\t\t******************************"<<"\n\t\t\t******************************";
 cout<<"\n\t\t\t**                          **"<<"\n\t\t\t** Welcome To High/Low Game **"<<"\n\t\t\t** ________________________ **";
 cout<<"\n\t\t\t**                          **"<<"\n\t\t\t******************************"<<"\n\t\t\t******************************";
 cout<<"\n\n\n\n------------"<<"\n Main  Menu"<<"\n------------"<<"\n\n\n 1.Rules\n\n 2.Play\n\n 3.Exit"<<"\n\n Enter your choice(1-3):";
 cin>>ch1;

 switch(ch1)
 {
  case 1:
    {
    clrscr();
    cout<<"\n\n---------------------"<<"\n General Description"<<"\n---------------------";
    cout<<"\n\n1.The Computer picks a random number from 0 to 99.\n  You must try to guess the number.";
    cout<<"\n\n2.The Computer ask you to enter your guess.You have 8\n  chances to guess the number.";
    cout<<"\n\n3.The computer checks the number,if your guess is\n  less than computer's numer than it will show a message\n  that your guess is low and ask for higher number.";
    cout<<"\n\n4.If your guess is higher than the computer's number\n  than computer will show a message that your guess is high and\n  ask for lower number.";
    cout<<"\n\n5.If your guess is equal to the computer's number,than\n  computer will print a message congratulating you\n  and will ask you to play the game again or exit.";
    cout<<"\n\n6.If you are unable to guess the number than the computer\n  will a sorry message and ask you to play the game again or exit.";
    D: cout<<"\n\n\n  Press * to goto Main Menu:";
    cin>>ch2;
    if(ch2=='*')
    {
     ch2='#';
     goto C;
    }
    else
     goto D;
   }
    break;

 case 2:
  {
   clrscr();
   cout<<"\n\n\nEnter Your Name:";
   cin>>a;
   cout<<"\n\n";
   for(int i=0;i<=100;i+=20)
   {
    cout<<"Loading......."<<i<<"%\r";
    sleep(1);
   }
   cout<<"\n\nHi "<<a<<".........!!!!";

       A: if(c>0)
    clrscr();
   randomize();
   rnum=random(num);
   cout<<"\n\nEnter Your Guess:";
   cin>>guess;
   count=8;

     B: while(guess!=rnum)
        {
    count--;
    if(guess>rnum)
    {
     cout<<"\n\n"<<guess<<" is High....!!!!\a\a"<<"\n\nNow You Have "<<count<<" chance left";
     if(count==0)
     break;
     cout<<"\n\nEnter Your Guess Again:";
     cin>>guess;
     goto B;
    }
    if(guess<rnum)
    {
     cout<<"\n\n"<<guess<<" is Low...!!!\a\a"<<"\n\nNow You Have "<<count<<" chance left";
     if(count==0)
      break;
     cout<<"\n\nEnter Your Guess Again:";
     cin>>guess;
     goto B;
    }
   }
   if(guess==rnum)
   {
    cout<<"\n\n\t\tCongratulation "<<a<<" You Have Done IT.......!!!!!\a\a";
    switch(count)
    {
     case 7: cout<<"\n\nYour Score is 100 out of 100";
      break;
     case 6: cout<<"\n\nYour Score is 85 out of 100";
      break;
     case 5: cout<<"\n\nYour Score is 70 out of 100";
      break;
     case 4: cout<<"\n\nYour Score is 55 out of 100";
      break;
     case 3: cout<<"\n\nYour Score is 40 out of 100";
      break;
     case 2: cout<<"\n\nYour Score is 25 out of 100";
      break;
     case 1: cout<<"\n\nYour Score is 10 out of 100";
      break;
    }
   }
   else
    cout<<"\n\n\t\tSorry "<<a<<" Bad Luck......!!! Try Next Time\a\a\a";
   cout<<"\n\nWant to Play More(y/n):";
   cin>>ch;

   if(ch=='y'||ch=='Y')
   {
    c++;
    goto A;
   }
   else
    {
     cout<<"\n\n\n\n\t\t\t    @@@@@@@@ THANK YOU @@@@@@@@   \n\n";
     cout<<"================================================================================";

     cout<<"\a\a\n\n\t\t\t\t Special Thanks To\n\t\t\t\t___________________\n\n\t\t\t\t  Mrs.Rakhi Jain";
     cout<<"\n\n\n\n\t\t\t\t Game Developed By\n\t\t\t\t___________________\n\n\t\t\t\t  Neeraj Mishra";
     cout<<"\n\n================================================================================";
     delay(10000);
     exit(0);
    }
  }
   break;
 case 3:
  {
   cout<<"\n\n\n================================================================================";
    cout<<"\n\n\t\t\t\t Special Thanks To\n\t\t\t\t___________________\n\n\t\t\t\t  Mrs.Rakhi Jain";
    cout<<"\n\n\n\n\t\t\t\t Game Developed By\n\t\t\t\t___________________\n\n\t\t\t\t  Neeraj Mishra";
    cout<<"\n\n\n================================================================================";
    delay(10000);
    exit(0);

  }
 }
 getch();
}


Posted by Unknown

What is MySQL?

Pronounced "my ess cue el" (each letter separately) and not "my SEE kwill." MySQL is an open source RDBMS that relies on SQL for processing the data in the database. MySQL provides APIs for the languages CC++EiffelJava,PerlPHP and Python. In addition, OLE DB and ODBC providers exist for MySQL data connection in the Microsoft environment. A MySQL .NET Native Provider is also available, which allows native MySQL to .NET access without the need for OLE DB.
MySQL is most commonly used for Web applications and for embedded applications and has become a popular alternative to proprietary database systems because of its speed and reliability. MySQL can run on UNIX,Windows and Mac OS.
MySQL is developed, supported and marketed by MySQL AB. The database is available for free under the terms of the GNU General Public License (GPL) or for a fee to those who do not wish to be bound by the terms of the GPL.
Posted by Unknown

IP Addressing Fundamental

What is an IP Address?

An IP address is an identifier for a computer or device on a TCP/IP network. Networks using the TCP/IP protocol route messages based on the IP address of the destination.
An IP address consists of 32 bits, often shown as 4 octets of numbers from 0-255 represented in decimal form instead of binary form. For example, the IP address: 168.212.226.204 in binary form is 10101000.11010100.11100010.11001100.
But it is easier for us to remember decimals than it is to remember binary numbers, so we use decimals to represent the IP addresses when describing them. However, the binary number is important because that will determine which class of network the IP address belongs to.

The Two Parts of an IP Address

An IP address consists of two parts, one identifying the network and one identifying the node, or host.
The Class of the address determines which part belongs to the network address and which part belongs to the node address. All nodes on a given network share the same network prefix but must have a unique host number.

Class A Network

In a Class A Network binary address start with 0, therefore the decimal number can be anywhere from 1 to 126. The first 8 bits (the first octet) identify the network and the remaining 24 bits indicate the host within the network. An example of a Class A IP address is 102.168.212.226, where "102" identifies the network and "168.212.226" identifies the host on that network.

Class B Network

In a Class B Network, binary addresses start with 10, therefore the decimal number can be anywhere from 128 to 191. The number 127 is reserved for loopback and is used for internal testing on the local machine. The first 16 bits (the first two octets) identify the network and the remaining 16 bits indicate the host within the network. An example of a Class B IP address is 168.212.226.204 where "168.212" identifies the network and "226.204" identifies the host on that network.

Class C Network

Binary addresses start with 110, therefore the decimal number can be anywhere from 192 to 223. The first 24 bits (the first three octets) identify the network and the remaining 8 bits indicate the host within the network. An example of a Class C IP address is 200.168.212.226 where "200.168.212" identifies the network and "226" identifies the host on that network.

Class D Network

In a Class D Network, binary addresses start with 1110, therefore the decimal number can be anywhere from 224 to 239. Class D networks are used to support multicasting.

Class E Network

In a Class E Network, binary addresses start with 1111, therefore the decimal number can be anywhere from 240 to 255. Class E networks are used for experimentation. They have never been documented or utilized in a standard way.
Posted by Unknown

The First Computer Programmer

Posted by Unknown

10 Free Server Tools

1. PSTools
Got tools? Add these valuable and free server tools to your toolbox to make your computers, network and wallet very happy.
PSTools is a suite of useful command-line Windows tools that IT professionals consider essential to survival in a Windows-infested network. It provides automation tools that have no rival. There is no greater free toolset for Windows available anywhere. Microsoft provides this suite free of charge. If it's not part of your Windows diagnostic and automation arsenal, stop reading and download it now. Be sure to come back and finish the list. You can multitask, can't you?)

2. SharEnum
ShareEnum is an obscure but very useful tool. ShareEnum shows you all file shares on your network. Even better, it shows you their associated security information. This very small (94K) tool might become one of the most valuable and useful security tools that you possess. It is another free tool from Microsoft.

3. Nagios
Nagios is an enterprise infrastructure monitoring suite. It's free, mature and commercially supported. It has grown from a niche software project to a major force in contemporary network management. It's used by such high-profile companies as Citrix, ADP, Domino's Pizza, Wells Fargo, Ericsson and the U.S. Army.

4. Wireshark
If you run a network of any size or topology, Wireshark is a must-have application. It is a network packet capture and analysis program that assists you with your ongoing quest for a trouble-free network. Wireshark won't prevent network problems, but it does allow you to analyze those problems in real time and possibly avoid failure.

5. Apache
The Apache project isn't just a web server. The project, officially known as the Apache Software Foundation (ASF), consists of almost 100 different projects under the Apache umbrella. Yes, the famous and wildly popular HTTP server, Apache, is the project's namesake and mainstay, but it isn't the only nymph in the forest.
Posted by Unknown

5 Types Of Server

1)Proxy Servers
A proxy server sits between a client program (typically a Web browser) and an external server (typically another server on the Web) to filter requests, improve performance, and share connections.

2)Mail Servers

Almost as ubiquitous and crucial as Web servers, mail servers move and store mail over corporate networks (via LANs and WANs) and across the Internet.


3)Server Platforms
A term often used synonymously with operating system, a platform is the underlying hardware or software for a system and is thus the engine that drives the server.

4)Web Servers
At its core, a Web server serves static content to a Web browser by loading a file from a disk and serving it across the network to a user's Web browser. This entire exchange is mediated by the browser and server talking to each other using HTTP.

5)Application Servers
Sometimes referred to as a type of middleware, application servers occupy a large chunk of computing territory between database servers and the end user, and they often connect the two.
Posted by Unknown

Facts About Information Technology



1.A byte means 8 bits and a nibblemeans 4 bits.

2.First harddisk available was of 5MB

3.Ethernet is the registered trademark 0f Xerox.

4.google uses over 10000 network computers to crawl the web.

5.Google can be queried in 26 languages

6.The floopy disk was patented byallen shugart in 1946.

7.More than 80% of web pages are in english.

8. 88% percent web pages have very low traffic rate.

9. An average american is dependent on 250 computers.

10.Internet is most fastest growing platform for advertisement.

11.About one third of CDs are pirated

12.About 76% softwares used in india are pirated.

13.Only 10% of the webpages are used by the search engines

14."I am feeling Lucky" This button is used by negligible no of people on net.

15.Bill gates & Paul Allen started a company called Traf-O-Data to
monitor traffic flow.

16.The four largest software makers in the world are:
(a) Microsoft
(b) Adobe
(c) Sap
(d) Computer Associates.

17.Top Ten Supercomputers of Today's Generation Arranged according to the speed:

1. Bluegene/ L DD2 Beta-system (IBM).
2. Columbia (NASA).
3. Earth Simulator (NEC).
4. MareNostrum(Bar celona Supercomputer Center).
5. Thunder (Lawrence Livermore National Laboratory).
6. ASCI Q(Los Alamos National Laboratory).
7. System X(Virgina Tech).
8. Blugene/L DD1 Prototype(IBM).
9. eServer pSeries 655 cluster (Naval Oceanographic Office).
10. Tungsten(National Center ForSupercomputing Applications).
Posted by Unknown

C Program That Change Character to Integer To Binary

#include<stdio.h>
#include<conio.h>
 
void inttobin(int); //the function that will convert the integer value to binary
 
main(){
int n, count;
//array of small letters
char sletter[27] = "abcdefghijklmnopqrstuvwxyz";
//array of big letters
char bletter[27] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
//check the int value of small letters from a to z
for(count = 0; count<26; count++){
n=sletter[count]; //get int value of a characters
printf("%c = %d = ",sletter[count],n ); //print a character and its integer value
inttobin(n);//calls function to convert integer value to binary and prints it
printf("\n");
}
printf("\nThe Big Letters\n\n");
//check the int value of BIG letters from A to Z
for(count = 0; count<26; count++){
n=bletter[count];//get int value of a characters
printf("%c = %d = ",bletter[count],n );//print a character and its integer value
inttobin(n);//calls function to convert integer value to binary and prints it
printf("\n");
}
getch(); //i don't know, it's my practice so the program won't terminate immediately after running.
return 0;
}
 
//code for int to bin
void inttobin(int n){
/*
>This function convert the integer parameter to binary and displays the results
>The binary is stored on the array bin[] defined inside this function
>This function only converts integer value form 1 to 127
*/
char bin[7]; //the array of char that will represent the binary value
int count;
//check if the integer value is divisible by 64
if((n/64)==1){
bin[0]='1'; //if TRUE, set the 64 value in binary array by seting it 1
n=n%64; //set n to n mod 64 for futher computation
}
else{bin[0]='0';}//if FALSE, set it as 0
//check if the integer value is divisible by 32
if((n/32)==1){
bin[1]='1'; //if TRUE, set the 32 value in binary array by setting it 1
n=n%32; //set n to n mod 32 for futher computation
}
else{bin[1]='0';}//if FALSE, set is as 0
//the same process will continue until...
if((n/16)==1){ //***16***
bin[2]='1';
n=n%16;
}
else{bin[2]='0';}
//until....
if((n/8)==1){ //***8***
bin[3]='1';
n=n%8;
}
else{bin[3]='0';}
//wait for it...
if((n/4)==1){ //***4***
bin[4]='1';
n=n%4;
}
else{bin[4]='0';}
//almost there...
if((n/2)==1){ //***2***
bin[5]='1';
n=n%2;
}
else{bin[5]='0';}
//Tadah!!! it reaches the last binary digit which represent the integer 1
if((n/1)==1){//***1***
bin[6]='1';
n=n%1;
}
else{bin[6]='0';}
//after the binary array is set, the function will output the produced string of binary digit
for(count=0;count<7;count++){
printf("%c ",bin[count]);
}
 
}
Posted by Unknown

Wireless connected but no internet access

CLICK ON THE WIRELESS CONNECTION ICON IN LEFT LOWER CORNER. OR OPEN THE NETWORK CONNECTIONS ICON. CLICK PROPERTIES ON THE WIRELESS CONNECTION... UNDER INTERNET PROTOCOL (TCP/IP) HIGHLIGHT IT AND CLICK PROPERTIES. MAKE SURE IT SAYS OBTAIN IP ADDRESS AUTOMATICALLY. WRITE DOWN THE NUMBERS YOU SEE BEFORE YOU DO THAT JUST INCASE IT DOESNT WORK.
Posted by Unknown

How To Format A Laptop Using USB Or Pendrive

1. plug ur 4 gb usb pen drive 
2. go to command prompt run as administrator 
3. type the following- 
diskpart 
list disk 
the number of ur usb vl be listed. ( assume usb drive is disk 1 ) ,then type- 
select disk 1 
clean 
create partition primary 
select partition 1 
active 
format fs=NTFS 
assign 
exit 
( now your usb is bootable ) 
4. copy the windows vista\windows 7 dvd to your usb 
5. restart ur computer 
6. go to bios 
7.then go to boot option 
8. select boot from usb and press enter 
Posted by Unknown

© Information Technology