C++ program to find whether a number is an Armstrong number

What is an Armstrong number?
A number is armstrong if the sum of cubes of individual digits of a number is equal to the number itself. For example 153 is an armstrong number as 1 + 125 + 27 = 153.


‪int main()
{
int n,m=0,x,y;
cout<<"Enter any three digit number:";
cin>>n;
y=n;

while(n!=0)
{
x=n%10;
m+=(x*x*x);
n=n/10;
}

if(y==m)
cout<<"The number is an Armstrong number";
else
cout<<"The number is not an Armstrong number";

return 0;
}






Posted by Unknown

HTML Fundamental

This tip will tell you exactly how to code your own HTML website.
First, remember that most tags must be eventually closed. The syntax would be: <tag> CONTENT </tag>.

Open a text editor such as notepad, or the HTML editor for your hosting service.
The first tag in your website should be <html>, which starts the HTML site.
Immediately after this should come the <head> tag.
So far, you should have the following:
<html>
<head>


The next step is to enter the title of your website. This is what shows up in the title bar of the internet browser. Put the title between the <title> and </title>. Then, end the head with </head>. You will end up with:

<html>
<head>
<title>TITLE</title>
</head>


Other data to put into the head includes metadata and stylesheet data.
The next step is to add the body of your website. This is where all the important stuff goes. Start out the body with the <body> tag. In a basic website, all the real content goes in the body.
The most basic way to write the body is to simply write a heading, then type.
Within the body, start off by writing the first heading. This should be big, so the <h1> tag should do the trick. After that, simply write the text of the site. Remember the syntax for making links:
 <a href="http://www.linktarget.com">LINK</a>

And for making images:
 <img src="http://imagesite.com/image.jpg"> .
Remember, most HTML Tips can be simply inserted into the body and used immediately.
Finish off the body with </body>, and the body is done.
The code with the body included should look like:

<html>
<head>
<title>TITLE</title>
</head>
<body>
<h1>THE SITE</h1>
blablabla
<a href="
http://www.linktarget.com">LINK</a>
IMAGE:
<img src="
http://imagesite.com/image.jpg">
</body>


Remember, you still have 1 more tag to close: the <html> tag. Close it with </html>, and your website is complete. The final code:

<html>
<head>
<title>TITLE</title>
</head>
<body>
<h1>THE SITE</h1>
blablabla
<a href="
http://www.linktarget.com">LINK</a>
IMAGE:
<img src="
http://imagesite.com/image.jpg">
</body>
</html>
Posted by Unknown

How to Create Windows 8 Bootable Pendrive

There are number of ways for installing an operating system to your computer. Most of the people do it by using bootable CD/DVD of windows. But we really don’t need to install windows very frequently and because of this , it is so difficult to put this bootable disc on safe place and remember where you have kept it when needed.
Also , number of times when you are installing window you see some error saying that some of the necessary installation file is missing from the disc and setup can not be continued. All this happens because of scratches present on disc surface since disc is too old to use.


Step 1 :Download Windows 7 USB/DVD download tool and install it.The link is,http://www.microsoftstore.com/store/msusa/html/pbPage.Help_Win7_usbdvd_dwnTool


This tool is available for free from Microsoft Corporation as well so you can get it from there too. Despite its name, this tool works with Windows 8 ISOs as well. You can use this tool for any version of Windows.

Step 2:After downloading and installing the tool, Run it , now you need to Browse and give the path where the ISO  file is located in your computer.

Step 3:Now select whether you want to create a bootable DVD for windows or you want it to be a bootable pendrive. Here you need to select USB device because you want to make bootable pendrive.

Step 4: Browse and select the pendrive which you want to make bootable. Make sure that the pendrive has atleast 4 gb free . Now click on Begin Copying.


Step 5:Once you begin copying , the tool will start creating bootable Windows 8 USB installer flash drive using the Windows 8 iso. Let this process complete , lastly when you see the message “Bootable USB Device created successfully”, you can restart your PC and boot from the USB drive.
Posted by Unknown

Top 5 Fastest SuperComputer In The World

1)Tianhe-2 (China)


China's new Tianhe-2 supercomputer officially became the fastest supercomputer in the world on Monday by blowing America's Titan supercomputer out of the water.

A group of computer scientists and engineers who twice a year release the "Top500" list of fastest supercomputers measured the Tianhe-2 at 33.9 petaflops (quadrillions of calculations per second). That's nearly twice as fast as the Titan, which was relegated to the second spot on the list.

Also dubbed Milkyway-2, Tianhe-2 came online two years before expected. It was manufactured by China's National University of Defense Technology and will be relocated to the National Supercomputer Center in Guangzho in southwest China by the end of this year.

NUDT has listed several possible uses for Tianhe-2, including simulations for testing airplanes, processing "big data," and aiding in government security.

The last time a Chinese system landed on the list's top spot was in 2010 when the Tianhe-1 was ranked the fastest in the world.


2)Titan(United States)


It reached the number one spot on the "Top500 List" in November, but Titan has already been bumped down to second place.

Titan resides at the U.S. Department of Energy's Oak Ridge National Laboratory and helps scientists pioneer research into climate change, bio fuels and nuclear energy.

The supercomputer was manufactured by the American-based company Cray (CRAY) and has clocked in at 17.6 petaflops. Titan outperforms its closest competitor, another American computer called the Sequoia, by less than one petaflop and is one of the most energy efficient systems on the list.
The United States hosts 253 of the 500 supercomputers on the list -- more than any other country



3)K Computer(Japan)

Japan's K Computer became the first supercomputer capable of running faster than 10 petaflops. It held the title of the world's fastest supercomputer from June 2011 until June 2012. Now, it's ranked fourth.

Still, it's one of only 26 supercomputers in the world with performance greater than 1 petaflop.

There's something to be said for remaining in the top ten of the list for multiple years in an industry that's moving rapidly. The last system ranked on this year's Top500 list ranked 320 just six months ago.

K Computer is installed at the RIKEN Advanced Institute for Computational Science in Kobe, Japan and was manufactured by Fujitsu.



4)Stampede (United States)

"Stampede" at the Texas Advanced Computing Center of the University of Texas is one of those rare supercomputers that actually moved up in the rankings.

After receiving an upgrade since the last "Top500 List" was released in November, Stampede moved up one notch to number six.

It was manufactured by Dell (DELL, Fortune 500) and has achieved 5.2 petaflops.

Any researcher at a U.S. institution can submit a request to use Stampede, making it one of the largest open computer systems in the world. Currently, researchers are using Stampede to explore the flow of ice from Antarctica into the sea and to forecast earthquakes.


5)Juqueen (Germany)



Juqueen is the most powerful European supercomputer. Peaking at the speed of about 5 petaflops, it moved down two spots since November's "Top500 List" to No. 7 on the June list.

Different versions of the system, which have been manufactured by IBM (IBM, Fortune 500), have also cracked the top 10 in the past.

Juqueen is housed at the Forschungszentrum Juelich research center in Germany. It is one of 19 supercomputers located in Germany that made the Top500. The United Kingdom and France have 29 and 23 systems, respectively, on the list.


Posted by Unknown

Rooting Your Android Smartphone

Free Windows utility Kingo Android Root makes it a snap to jailbreak just about any Android smartphone. Here's how to use it.



Rooting is the Android equivalent of jailbreaking, a means of unlocking the operating system so you can install unapproved (by Google) apps, update the OS, replace the firmware, overclock (or underclock) the processor, customize just about anything, and so on.
Of course, for the average user, rooting sounds like -- and can be -- a scary process. After all, "rooting" around in your smartphone's core software might seem like a recipe for disaster. One wrong move and you could end up with bricked handset.
Thankfully, there's a new Windows utility that makes rooting a one-click affair: Kingo Android Root. It's free, and based on my initial tests with a Virgin Mobile Supreme, it works like a charm. (Be sure to check the compatibility list before you proceed, keeping in mind that although the Supreme wasn't on it, the utility had no problem with it.) Here's how to get started.
Step one: Download and install Kingo Android Root.

Step two: Enable USB debugging mode on your phone. If it's running Android 4.0 or 4.1, tap Settings, Developer Options, then tick the box for "USB debugging." (You may need to switch "Developer options" to On before you can do so.) On Android 4.2 and later, tap Settings, About Phone, Developer Options, and then tick USB debugging." Then tap OK to approve the setting change.
Step three: Run Android Root on your PC, then connect your phone via its USB sync cable. After a moment, the former should show a connection to the latter.



Step four: Click Root, then sit back and wait while the utility does its thing. The aforementioned Supreme took all of about two minutes, including the automated reboot at the end.
And that's all there is to it. If you decide you want to reverse the process, just run Android Root again, connect your phone, then click Remove Root.
With that done, now you can take advantage of options like USB On-the-Go to make your unexpandable phone expandable.




Posted by Unknown

C++ program to enter a number and print it into words

#include<iostream.h>
#include<conio.h>

void once(int a)
{
switch(a)
{
case 1: cout<<"One";
break;
case 2: cout<<"Two";
break;
case 3: cout<<"Three";
break;
case 4: cout<<"Four";
break;
case 5: cout<<"Five";
break;
case 6: cout<<"Six";
break;
case 7: cout<<"Seven";
break;
case 8: cout<<"Eight";
break;
case 9: cout<<"Nine";
break;
}
}

int tens(int a,int b)
{
int flag=0;
switch(a)
{
case 1:
flag=1;
switch(b)
{
case 0: cout<<"Ten";
break;
case 1: cout<<"Eleven";
break;
case 2: cout<<"Twelve";
break;
case 3: cout<<"Thirteen";
break;
case 4: cout<<"Fourteen";
break;
case 5: cout<<"Fifteen";
break;
case 6: cout<<"Sixteen";
break;
case 7: cout<<"Seventeen";
break;
case 8: cout<<"Eighteen";
break;
case 9: cout<<"Nineteen";
break;
}
break;
case 2: cout<<"Twenty";
break;
case 3: cout<<"Thirty";
break;
case 4: cout<<"Fourty";
break;
case 5: cout<<"Fifty";
break;
case 6: cout<<"Sixty";
break;
case 7: cout<<"Seventy";
break;
case 8: cout<<"Eighty";
break;
case 9: cout<<"Ninety";
break;
}
return(flag);
}

void hundred(int a)
{
switch(a)
{
case 1: cout<<"One Hundred";
break;
case 2: cout<<"Two Hundred";
break;
case 3: cout<<"Three Hundred";
break;
case 4: cout<<"Four Hundred";
break;
case 5: cout<<"Five Hundred";
break;
case 6: cout<<"Six Hundred";
break;
case 7: cout<<"Seven Hundred";
break;
case 8: cout<<"Eight Hundred";
break;
case 9: cout<<"Nine Hundred";
break;
}
}

void main()
{
clrscr();
int n,a[3],i=0,flag=0;
cout<<"Enter any number(max 3 digits):";
cin>>n;

  while(n!=0)
{
a[i++]=n%10;
n=n/10;
}

  for(i=i-1;i>=0;--i)
{
if(i==0&&flag==0)
once(a[0]);
if(i==1)
flag=tens(a[1],a[0]);
if(i==2)
hundred(a[2]);
cout<<" ";
}
getch();
}

   

Posted by Unknown

C++ program to calculate sum of two numbers

#include<iostream.h>
#include<conio.h>

void main()
{
int x,y,sum;
clrscr();

cout<<"Enter first no: ";
cin>>x;
cout<<"Enter second no: ";
cin>>y;

sum=x+y;
cout<<"\nSum = "<<sum;
getch();
}


Posted by Unknown

Java program to convert given number of days into months and days



class Days
{
 public static void main(String...s)
 {

  int n,m,d;
  n=Integer.parseInt(s[0]);
  
  m=n/30;
  d=n%30;
  
  System.out.println(n+" days"+" = "+m+" months "+"and "+d+" days");
 }
}


Posted by Unknown

C++ Program to calculate sum and average of three numbers

#include<iostream.h>
#include<conio.h>


void main()
{
 clrscr() //to clear the screen
 float a,b,c,sum,av;
 cout<<"Enter three numbers:";
 cin>>a>>b>>c;


 sum=a+b+c;
 av=sum/3;
 cout<<"\nSUM="<<sum;
 cout<<"\nAverage="<<av;


 getch(); //to stop the screen
}

Posted by Unknown

What is a Local-Area Network (LAN)?



A local-area network (LAN) is a computer network that spans a relatively small area. Most LANs are confined to a single building or group of buildings, however, one LAN can be connected to other LANs over any distance via telephone lines and radio waves. A system of LANs connected in this way is called a wide-area network (WAN).
Most LANs connect workstations and personal computers. Each node (individual computer ) in a LAN has its own CPU with which it executes programs, but it also is able to access data and devices anywhere on the LAN. This means that many users can share expensive devices, such as laser printers, as well as data. Users can also use the LAN to communicate with each other, by sending e-mail or engaging in chat sessions.
LANs are capable of transmitting data at very fast rates, much faster than data can be transmitted over a telephone line; but the distances are limited, and there is also a limit on the number of computers that can be attached to a single LAN.
Emergence of Ethernet Fabric Will Push Users to Rethink Their Data Center Physical Switch Networks Download Now
Types of Local-Area Networks (LANs)
There are many different types of LANs, with Ethernets being the most common for PCs. Most Apple Macintosh networks are based on Apple's AppleTalk network system, which is built into Macintosh computers.
The following characteristics differentiate one LAN from another:
topology : The geometric arrangement of devices on the network. For example, devices can be arranged in a ring or in a straight line.
protocols : The rules and encoding specifications for sending data. The protocols also determine whether the network uses a peer-to-peer or client/server architecture.
media : Devices can be connected by twisted-pair wire, coaxial cables, or fiber optic cables. Some networks do without connecting media altogether, communicating instead via radio waves.
Posted by Unknown

© Information Technology