Thursday, 31 October 2013

C++ Program to find Compound Interest.

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
float p,r,t,ci;
clrscr();

cout<<"Enter Principle,Rate and Time ";
cin>>p>>r>>t;
ci=pow(p*(1+r/100),t);

cout<<"\n"<<"Compound Interest = "<<ci<<"%";
getch();
}

--------------------------------------------------------------------------------------------------------------------------

Wednesday, 30 October 2013

Lenovo's new curvy tablet - Hold,Tilt ,Stand

LOS ANGELES: Chinese computer maker LENOVO presented a new tablet device including a bracket-cum-handle allowing it to tilt and stand, which it billed as a "game-changing" innovation.
Hollywood actor Ashton Kutcher unveiled the Yoga Tablet at a Los Angeles event which had been shrouded in mystery, with teaser videos and social media hints tagged .

SPECIFICATIONS :-
The device,

> Has 18 hours of battery life.
> Has three modes: hold, tilt and stand.

 A cylindrical hinge on one side can either be held, or opened to produce a stand, similar to the kick-stand on Microsoft's Surface tablet.
"Watching and discovering that people frequently use tablets in three main ways allowed us to break the mold on the current 'sea of sameness' designs," said Lenovo senior vice president Liu Jun, calling it "game-changing."
Teaser videos ahead of the event had included some suggesting that it could somehow be attached to furniture or household appliances, but the product appeared less radical.
The device comes in :- 8 and 10 inch models. 

Price:-at $249 and $299 respectively. An optional blue tooth keyboard is available for the larger model, which serves as a cover.

It enters a hugely crowded tablet market still dominated by Apples iPad, but with rivals including notably South Korea's Samsung vying to attract customers in the run-up the all important US holiday gift-buying season.

---------------------------------------------------------------------------------------------------------

Tuesday, 29 October 2013

C++ Program check whether a number is palindrome or not.

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
unsigned long n,num,d,rev=0;
cout<<"Enter any number: ";
cin>>n;
num=n;
do
{
d=n%10;
rev=(rev*10)+d;
n=n/10;
}while(n!=0);
if(num==rev)
cout<<endl<<"Number is Palindrome";
else
cout<<endl<<"Number is not Palindrome";
getch();
}
----------------------------------------------------------------------

C++ Program to print table of any number

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

void main()
{
clrscr();
int i,n;
cout<<"Enter Number to Find Its Multiplication Table :";
cin>>n;
cout<<"\n\n";

for(i=1;i<=10;++i)
cout<<"\t"<<n<<"*"<<i<<"="<<n*i<<"\n";
getch();
}


 If u want more programs or any help contact me on Facebook , i will be happy if i could help u...  

Click on the name below :-
***** Nilov Manna *****

TIC - TAC -TOE GAME in C++

OUTPUT SNAPSHOT :-

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


char mat[3][3];
void table(void);            //function to print the table
void welcome(void);     //function for welcome screen

void main()
{
 welcome();
     A: clrscr();
 int i,j,m,n,sum=0;
 char ch;

 for(m=0;m<3;++m)
  for(n=0;n<3;++n)
   mat[m][n]='\0';
 table();

 while(sum<10)
 {
 //for player 1
 cout<<"Player 1 is'x'\nChoose the position:";
 cout<<"\nRow:";
 cin>>i;
 cout<<"Coloumn:";
 cin>>j;

//if position is wrong
 for(;i>3||i<1||j>3||j<1||('x'==mat[i-1][j-1]||'o'==mat[i-1][j-1]);)
 {
    cout<<"\nSorry!!!! wrong position,Choose the position again";
    cout<<"\nRow:";
    cin>>i;
    cout<<"Coloumn:";
    cin>>j;
 }
 mat[i-1][j-1]='x';
 sum++;

 //to check if player 1 wins or not
 if(mat[0][0]=='x'&&mat[0][0]==mat[0][1]&&mat[0][0]==mat[0][2])
 {
  table();
  cout<<"\nPlayer 1 wins.......!!!" ;
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[1][0]=='x'&&mat[1][0]==mat[1][1]&&mat[1][0]==mat[1][2])
 {
  table();
  cout<<"\nPlayer 1 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[2][0]=='x'&&mat[2][0]==mat[2][1]&&mat[2][0]==mat[2][2])
 {
  table();
  cout<<"\nPlayer 1 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][0]=='x'&&mat[0][0]==mat[1][0]&&mat[0][0]==mat[2][0])
 {
  table();
  cout<<"\nPlayer 1 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][1]=='x'&&mat[0][1]==mat[1][1]&&mat[0][1]==mat[2][1])
 {
  table();
  cout<<"\nPlayer 1 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][2]=='x'&&mat[0][2]==mat[1][2]&&mat[0][2]==mat[2][2])
 {
  table();
  cout<<"\nPlayer 1 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][0]=='x'&&mat[0][0]==mat[1][1]&&mat[0][0]==mat[2][2])
 {
  table();
  cout<<"\nPlayer 1 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][2]=='x'&&mat[0][2]==mat[1][1]&&mat[0][0]==mat[2][0])
 {
  table();
  cout<<"\nPlayer 1 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(sum==9) //to check the chances
 {
  table();
  cout<<"\n\tThe game is over.......no one wins...HaHaHa.....!!!";
  break;
 }
 //for player 2
 cout<<"\n\nPlayer 2 is'o'\nChoose the position:";
 cout<<"\nRow:";
 cin>>i;
 cout<<"Coloumn:";
 cin>>j;

 //if position is wrong
 for(;i>3||i<1||j>3||j<1||('x'==mat[i-1][j-1]||'o'==mat[i-1][j-1]);)
 {
    cout<<"\nSorry!!!! wrong position,Choose the position again";
    cout<<"\nRow:";
    cin>>i;
    cout<<"Coloumn:";
    cin>>j;
 }
 mat[i-1][j-1]='o';
 sum++;
 table();

 //to check player 2 wins or not
 if(mat[0][0]=='o'&&mat[0][0]==mat[0][1]&&mat[0][0]==mat[0][2])
 {
  cout<<"\nPlayer 2 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[1][0]=='o'&&mat[1][0]==mat[1][1]&&mat[1][0]==mat[1][2])
 {
  cout<<"\nPlayer 2 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[2][0]=='o'&&mat[2][0]==mat[2][1]&&mat[2][0]==mat[2][2])
 {
  cout<<"\nPlayer 2 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][0]=='o'&&mat[0][0]==mat[1][0]&&mat[0][0]==mat[2][0])
 {
  cout<<"\nPlayer 2 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][1]=='o'&&mat[0][1]==mat[1][1]&&mat[0][1]==mat[2][1])
 {
  cout<<"\nPlayer 2 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][2]=='o'&&mat[0][2]==mat[1][2]&&mat[0][2]==mat[2][2])
 {
  cout<<"\nPlayer 2 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][0]=='o'&&mat[0][0]==mat[1][1]&&mat[0][0]==mat[2][2])
 {
  cout<<"\nPlayer 2 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }

 if(mat[0][2]=='o'&&mat[0][2]==mat[1][1]&&mat[0][0]==mat[2][0])
 {
  cout<<"\nPlayer 2 wins.......!!!";
  cout<<"\nYou have played Great.....!!!";
  sleep(5);
  break;
 }
 }
 cout<<"\n\n\tWould you like to play more....?(y/n):";
 cin>>ch;
 if(ch=='y'||ch=='Y')
  goto A;
 else
 {
  cout<<"\n\n\tThanks for Playing.......:)";
  sleep(5);
  exit(0);
 }
}

void table()
{
 clrscr();
 cout<<"\n\n\t\t  1  2  3\n";
 cout<<"\t\t1  "<<mat[0][0]<<"|"<<mat[0][1]<<"|"<<mat[0][2];
 cout<<"\n\t\t  --|-|--";
 cout<<"\n\t\t2  "<<mat[1][0]<<"|"<<mat[1][1]<<"|"<<mat[1][2];
 cout<<"\n\t\t  --|-|--";
 cout<<"\n\t\t3  "<<mat[2][0]<<"|"<<mat[2][1]<<"|"<<mat[2][2]<<"\n\n";
}

void welcome()
{
 textmode(C80);
 textcolor(YELLOW);
 clrscr();

 cout<<"\n\n\n\n\n\t\t\t\tWelcome To";
 sleep(2);
 cout<<"\n\n\t\t\t\tTic-Tac-Toe";
 sleep(1);
 cout<<"\n\n\t\t\t\t   Game";
 sleep(1);
 cout<<"\n\n\n\n\n\n\n\n\n\t\t\t\t\tPress any key to continue.....!!";
 getch();
}


 If u want more programs or any help contact me on Facebook , i will be happy if i could help u...  

Click on the name below :-
***** Nilov Manna *****

Friday, 25 October 2013

China: Computer dealer offers electronics for sheep

An interesting piece about sheep for computers...

Residents of Kashgar in the Xinjiang Uygur autonomous region can leave their wallets at home when they want to shop for a smartphone or tablet computer.

Instead, they just need to take their sheep.


A smartphone can be had for a sheep, and a laptop costs four sheep, according to leaflets handed out by Huang Jie, a local computer dealer.

The 29-year-old decided to run a special promotion to give people a better idea of the value of his products and encourage them to use their sheep to buy his roducts.

Huang has been handing out leaflets in villages around the city during weekends to promote his idea.

"The demand for computers in the villages is very high. Some children even carve keyboards on their desks," he said.

"Many believe computers are very expensive, I want to show them that electronic products are actually quite affordable by comparing their values with their most familiar commodity — sheep.

"I often found people selling their sheep for less than market value because the villages are far from the city. But they can trade their sheep with me, and I help them sell the sheep at a fair price. I will return the money to them if it's more than the price of the product they purchased," Huang added.

Huang said, on June 2, that some people have shown an interest in trading sheep but he hasn't made a deal yet. Some villages still don't have Internet connections, which makes the sales of computers there difficult, he added. 

----------------------------------------------------------------------------------------------------------------------------------

Thursday, 24 October 2013

Flashing Colored LED Light up SHOE LACES .


 DETAILS :-- 



  • The latest third generation product
  • LED light source + high transmission fiber, smooth effect more strong,(shoelace homogeneous soft luminous) effect is far superior to the plastic pipe material products, through the CE ROHS authentication, waterproof processing, etc
  • Suitable for the roller skatesdance shoes, basketball shoes ,football shoes, children shoes, casual shoes, sports shoes, suitable for outdoor sports, night running, large festival party, concert, promotion, encouragement and other activities
  • Fashion / Magic LED Flashing Shoelaces
  • Condition: brand new
  • This product is New/Unique style,Ultra bright and eye-catching, for they are the shoelaces can light up and flash!
  • Suitable for almost all shoes with shoelaces, such as board shoes, roller skates, sneakers,etc. Perfect for night wearing.
  •  


    SPECIFICATIONS :- 



  • LED backlit offers safe, thin, comfortable and non-intruding light
  • 3-mode flashing: Steady on, fast strobe, slow strobe
  • Convenient on / off switch
  • Perfect for parties and evening / night events
  • Flashing or intermittent discharge is 60-80 hours, 2-3 months of normal use, the battery can be replaced
  • Powered by 1 x CR2032 battery (Battery included)
  • Net Weight: 40g
  • Shoelaces Length: 80cm/ 31.4 inch
  • Light source: LED
  • Shoelace material: Glass fiber
  • Control box material: plastic