Search This Blog

Thursday, April 29, 2010

Let's have a small program in that mean time....

C Program For Puzzle
#include
#include
#include
#include
>
#include
int mx,my,ans=0,p=4;
screen();
void button();
/* The main logic lies in displaying the numbers in the screen
The numbers are placed corresponding to their binary value
EX:In case of 14(binary equivalent is 01110).Therefore it will be
placed in 2,3 & 4 screen
*/
int s1[]={16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
int s2[]={8,9,10,11,12,13,14,15,24,25,26,27,28,29,30,31};
int s3[]={4,5,6,7,12,13,14,15,20,21,22,23,28,29,30,31};
int s4[]={2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31};
int s5[]={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31};
int a1,a2,a3,a4,a5;
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\tc\bgi");
mouseini();
showmp();
action();
}
action()
{
int ans=0;
char st[10];
initialscreen();
while(1)
{
/* The X & Y coordinate of each function is calculated
with respect to mx "maximum of x value" & my "maximum of y value" */
if(click((mx/4)+95,(my/4)+100,(mx/4)+235,(my/4)+140,"Play..")==0)
{
a1=screen(s1,16);
a2=screen(s2,16);
a3=screen(s3,16);
a4=screen(s4,16);
a5=screen(s5,16);
ans=a1+a2+a3+a4+a5;
result(ans);
getch();
exit();
}
}
}
initialscreen()
{
mx=getmaxx(),my=getmaxy();
setmp();
setfillstyle(1,7);
bar(mx/4,my/4,3*mx/4,3*my/4);
setcolor(WHITE);
line(mx/4,my/4,3*mx/4,my/4);
line(mx/4,my/4,mx/4,3*my/4);
setcolor(BLACK);
line(mx/4,3*my/4,3*mx/4,3*my/4);
line(3*mx/4,my/4,3*mx/4,3*my/4);
setcolor(RED);
outtextxy((mx/4)+40,(my/4)+30,"THINK A NUMBER BETWEEN 1-31");
button((mx/4)+95,(my/4)+100,(mx/4)+235,(my/4)+140,"Play..");
}
screen(int *scr,int num)
{ int a,i,x1,y1;
char st[10];
mx=getmaxx(),my=getmaxy();
setmp();
setfillstyle(1,7);
bar(mx/4,my/4,3*mx/4,3*my/4);
setcolor(WHITE);
line(mx/4,my/4,3*mx/4,my/4);
line(mx/4,my/4,mx/4,3*my/4);
setcolor(BLACK);
line(mx/4,3*my/4,3*mx/4,3*my/4);
line(3*mx/4,my/4,3*mx/4,3*my/4);
setcolor(RED);
outtextxy((mx/4)+9,(my/4)+5,"TELL ME WHETHER THE NUMBER IS PRESENT?");
button((3*mx/4)-40 ,(3*my/4)-20,(3*mx/4)-5 ,(3*my/4)-5,"yes");
button((3*mx/4)-80 ,(3*my/4)-20,(3*mx/4)-45 ,(3*my/4)-5,"no");
x1=(mx/4)+80;
y1=(my/4)+65;
for(i=0;i
{
a=scr[i];
/*To convert the integer into string and then displaying it on the
graphic mode*/
itoa(a,st,10);
outtextxy(x1 ,y1,&st);
x1+=50;
if((i==3)||(i==7)||(i==11))
{
y1=y1+30;
x1=(mx/4)+80;
}
}
/*We have already noted that the numbers are placed in screen
corresponding to their binary value
To find the number we can convert these binary numbers to integers*/
while(1)
{
if (click((3*mx/4)-40 ,(3*my/4)-20,(3*mx/4)-5 ,(3*my/4)-5,"yes")==0)
{
ans=pow(2,p);
p=p-1;
return ans;
}
if (click((3*mx/4)-80 ,(3*my/4)-20,(3*mx/4)-45 ,(3*my/4)-5,"no")==0)
{
p=p-1;
return 0;
}
}
}
result(int ans)
{ char st[10];
mx=getmaxx(),my=getmaxy();
setmp();
setfillstyle(1,7);
bar(mx/4,my/4,3*mx/4,3*my/4);
setcolor(WHITE);
line(mx/4,my/4,3*mx/4,my/4);
line(mx/4,my/4,mx/4,3*my/4);
setcolor(BLACK);
line(mx/4,3*my/4,3*mx/4,3*my/4);
line(3*mx/4,my/4,3*mx/4,3*my/4);
setcolor(RED);
if(ans==0)
{
outtextxy((mx/4)+110,(my/4)+45,"I DONT BELEIVE");
outtextxy((mx/4)+60,(my/4)+60,"YOU MIGHT BE WRONG SOMEWHERE");
}
else
{
outtextxy((mx/4)+95,(my/4)+30,"THE NUMBER IS ");
itoa(ans,st,10);
outtextxy((mx/4)+205,(my/4)+30,st);
}
button((mx/4)+95,(my/4)+100,(mx/4)+235,(my/4)+140,"TRY AGAIN!");
button((mx/4)+95,(my/4)+150,(mx/4)+235,(my/4)+190,"EXIT");
while(1)
{
if (click((mx/4)+95,(my/4)+150,(mx/4)+235,(my/4)+190,"EXIT")==0)
{
closegraph();
restorecrtmode();
exit();
}
if (click((mx/4)+95,(my/4)+100,(mx/4)+235,(my/4)+140,"TRY AGAIN!")==0)
{
p=4;
action();
}
}
}
void button(int x1,int y1,int x2,int y2,char str[])
{
int xc,yc,i=0,l=0;
while(i
{
l+=4;
i++;
}
xc=(x2-x1)/2+x1-l;
yc=(y2-y1)/2+y1;
unpress(x1,y1,x2,y2);
settextstyle(0,0,0);
setcolor(RED);
outtextxy(xc,yc,str);
}
unpress(int x1,int y1,int x2,int y2)
{
setlinestyle(0,1,1);
setfillstyle(1,7);
bar(x1,y1,x2,y2);
setcolor(WHITE);
line(x1,y1,x2,y1);
line(x1,y1,x1,y2);
setcolor(0);
line(x1,y2,x2,y2);
line(x2,y1,x2,y2);
return 0;
}
press(int x1,int y1,int x2,int y2)
{
setlinestyle(0,1,1);
setfillstyle(1,7);
bar(x1,y1,x2,y2);
setcolor(0);
line(x1,y1,x2,y1);
line(x1,y1,x1,y2);
setcolor(WHITE);
line(x1,y2,x2,y2);
line(x2,y1,x2,y2);
return 0;
}
mouseini()
{
union REGS i,o;
i.x.ax=0;
int86(0x33,&i,&o);
return(o.x.ax);
}
showmp()
{
union REGS i,o;
i.x.ax=1;
int86(0x33,&i,&o);
return 0;
}
hidemp()
{
union REGS i,o;
i.x.ax=2;
int86(0x33,&i,&o);
return 0;
}

getmp(int *button,int *x,int *y)
{
union REGS i,o;
i.x.ax=3;
int86(0x33,&i,&o);
*button=o.x.bx;
*x=o.x.cx;
*y=o.x.dx;
return 0;
}
setmp()
{
union REGS i,o;
i.x.ax=4;
i.x.cx=(3*mx/4)+20;
i.x.dx=(3*my/4)+20;
int86(0x33,&i,&o);
}
click(int x1,int y1,int x2,int y2,char str[])
{
int button,x,y;
int xc,yc,i=0,l=0;
while(i
{
l+=4;
i++;
}
xc=(x2-x1)/2+x1-l;
yc=(y2-y1)/2+y1;

getmp(&button,&x,&y);
if( (x>x1 && xy1 && y
{
hidemp();
press(x1,y1,x2,y2);
setcolor(RED);
settextstyle(0,0,0);
outtextxy(xc,yc,str);
showmp();
while((button==1))
getmp(&button,&x,&y);
hidemp();
unpress(x1,y1,x2,y2);
showmp();
setcolor(RED);
settextstyle(0,0,0);
outtextxy(xc,yc,str);
for(i=50;i<500;i=i+50)
{
delay(10);
sound(i+200);
}
showmp();
nosound();
setcolor(RED);
settextstyle(0,0,0);
outtextxy(xc,yc,str);
return 0;
}
else return 1;
}
Anushka Sharma:

Now its time to feel my girl "ANUSHKA SHARMA" hmmm there is no words to describe her beauty.. im totally mad,crazy about her..is model and actress in the Bollywood film industry. In 2008, she played the female lead role in the Bollywood film Rab Ne Bana Di Jodi, directed by Aditya Chopra, who earlier directed hits like Dilwale Dulhania Le Jayenge (1995) and Mohabbatein (2000).

Anushka Sharma, the most promising Hindi film actress is currently the hottest and the newest sensation in bollywood.
Anushka Sharma who was born in 1987 in Bangalore, Karnataka grew up dreaming of becoming a super model.

This is from Rab Ne Bana Di Jodi with super star SHAH RUKH KHAN
Clinical CHENNAI crowned Champions
MS Dhoni has added another feather to his captaincy hat.Dhoni cited a motivational speech from team owner N Srinivasan as one of the significant moments of the campaign, and expressed satisfaction in the performance of the team's domestic contingent. Suresh Raina crowned a hugely impressive season with a match-winning hand of 57, and will be one of the key players as India look to regain the Twenty20 World Cup that they won in 2007.

Doug Bollinger isn't in that class as a left-arm pacer, but there's little doubt that it was his arrival as a late replacement for injured stars that transformed Chennai's season. "Our domestic pace bowlers didn't bowl very well," said Dhoni. Bollinger did, especially in tandem with the outstanding R Ashwin. "He has done the job of a seamer for us," said Dhoni. "He's an effective bowler and he has that carrom ball to confuse batsmen."

Pollard sizzles, Dhoni stays cool: With 55 required off 18, Pollard hits 22 runs in the 18th over, but smart field placings and bowling in the 19th consume Pollard.
Chennai Super Kings pose with the IPL trophy, Chennai Super Kings v Mumbai Indians, IPL final, DY Patil Stadium,

his deputy Suresh Raina capitalised on two dropped catches to score a crucial fifty, and Chennai Super Kings defended with aggression, smartness and flair to win the third IPL.

Sunday, April 25, 2010

Ahhh....Tempera for the Childrens.....

So....here is something I found on DickBlick art supplies. I think I'm going to order them, they look like they would have great color and be "easy". Has anyone tried these before?


http://www.dickblick.com/products/blick-tempera-cakes/

I'll let you know what I think of them...look fun though.

Hope you are all having a great week!!!
Thanks for peeking :)

New Painting "FISH TALES"
Hey there all!!
Hope everyone is having a wonderful Summer
It's been so beautiful here and we spent most of the day today outside!!!
Feels so good to have the sun on my face again.

Here is a painting I just finished and listed on Ebay.























INSPIRATIONAL THOUGHTS

Anyone can be angry-that is easy.But to be angry with the right person,to the right degree,at the right time,for the right purpose,and in the right way-this is not easy.$$$(Aristotle)$$$

Education,in my opinion,is no static acquirement which can ever be completed;it is a continuous process, an even -renewed experiment,a constantly repleishd energy,an unfailing alertness and an ever-widening interest in the strange and often beautiful manifestations of human life on earth.$$$(Harold Nicolson)$$$

Where there is fear,there is no love,where there is no love,there is no god.$$$(Baba Amte)$$$

There are many things which money cannot buy and without which money can buy nothing.A man may posses the entire world and yet lose the soul.$$$(R.L.Stevenson)$$$

Saturday, April 24, 2010

SR TENDULKAR Vs MS DHONI

Both men,one perhaps the greatest crickers,aone who has the making of india's greatest captain. Represents how much this means to their teams.....

Twenty20 games, if not won by a single-handed blasts, usually come down to captains, finals more so than others. These two captains also happen to be important batsmen of their line-ups. If Tendulkar has been remarkably consistent, setting up matches, Dhoni has been mercurial, retrieving lost matches. That holds true for their captaincy too.

Team talk:
There's no decision yet on whether the injured Tendulkar will play, but if he can hold the bat, expect him to open for Mumbai. "It's his call," was all their coach, Robin Singh, could offer. "If he is not available, we have our back-up plans.

Mumbai (probable) 1 Sachin Tendulkar (capt.), 2 Shikhar Dhawan, 3 Saurabh Tiwary, 4 Ambati Rayudu (wk), 5 Kieron Pollard, 6 JP Duminy, 7 Ali Murtaza/Abhishek Nayar, 8 Harbhajan Singh, 9 Dilhara Fernando, 10 Zaheer Khan, 11 Lasith Malinga

On a turning pitch, Chennai have no reason to divert from the three-spinner attack.

Chennai (probable) 1 Matthew Hayden, 2 M Vijay, 3 Suresh Raina, 4 MS Dhoni (capt. & wk), 5 S Badrinath, 6 Albie Morkel, 7 S Anirudha, 8 R Ashwin, 9 Doug Bollinger, 10 Muttiah Muralitharan, 11 Shadab Jakati.

In the spotlight

Law of averages says Matthew Hayden is due a single-handed match-winning blast. In an illustrious career, a Man-of-the-Match performance in a big tournament final is missing. In 12 innings since his Mongoose-charged 93, Hayden's top score has been 35, and his strike-rate has been 117.2. Neither Chennai nor Hayden expects this, and he will want to set things right.

  • Suresh Raina, with 1318 runs to his name, has overtaken Adam Gilchrist as the leading scorer in all IPL matches. Tendulkar is fifth with 1122 runs.
  • Raina also holds the record for most catches, 26, for a non-wicketkeeper.
.................ALL THE BEST CHENNAI SUPER KINGS....................
Song i love recently , awesome lyrics . Obviously addicted to the song . sonu nigam mindblowing !! ;)

Jab life ho out of control, Honthon ko kar ke gol
Honthon ki kar ke gol, Seeti bajaa ke bol

Jab life ho out of control, Honthon ko kar ke gol
Honthon ki kar ke gol, Seeti bajaa ke bol
Aal Izzz Well

Murgi kya jaane aande ka kya hoga
Aree life milegi ya tawee pe
fry hoga
Koi na jaane apna future kya hoga

Honth ghuma, Seeti bajaa
Seeti bajaa ke bol, Bhaiyaa aal izz well

Aree bhaiyaa all izz well
Aree chachu aal izz well
Aree bhaiyaa all izz well
Confusuin hi confusion hai
Solution kuch pata nahin

Solution jo mila to saala
Question kya tha pata nahin
Dil jo tera baat baat pe
Ghabraaye
Dil pe rakh ke haath usae tu fuslaa le
Dil idiot hai pyaar se usko samjha le

Honth ghuma
Seeti bajaa
Seeti bajaa ke bol
Bhaiyaa aal izz well
Aree bhaiyaa all izz well
Aree chachu aal izz well
Aree bhaiyaa all izz well

Scholarship ki pi gayaa daaru
Ghum to phir bhi mitaa nahin
Agarbattiyan raakh ho gayi
God to phir bhi dikha nahi
Bakra kya jaan uski jaan ka kya hoga
Sekh ghusegi ya saala Keema hoga
Koi na jaane apna future kya hoga

To Honth ghuma
Seeti bajaa
Seeti bajaa ke bol
Bhaiyaa aal izz well
Aree bhaiyaa all izz well
Aree chachu aal izz well
Aree bhaiyaa all izz well

Jab life ho out of control
Honthon ko kar ke gol
Honthon ki kar ke gol
Seeti bajaa ke bol
Aal Izzz Well

Murgi kya jaane aande ka kya hoga
Aree life milegi ya tawee pe
fry hoga
Koi na jaane apna future kya hoga
Honth ghuma
Seeti bajaa
Seeti bajaa ke bol
Bhaiyaa aal izz well

Aree bhaiyaa all izz well
Aree chachu aal izz well
Aree bhaiyaa all izz well
Na na na
Aree bhaiyaa all izz well
Aree bhaiyaa all izz well

Life of Riley.......















" Life is a full of sorrows for me , compared to many others who live so marginally.... "








HOME

Find my new Footprints....



















"A journey of new lifes begins with a first step "


No matter , how long you travel ... I believe , it should be on my own .... Let others chase your foot ....!! :)