Friday, July 31, 2009

To calculate sum of digits

//Program made by Puneet Sharma
#include
#include
//To calculate sum of digits
int sum( int k)
{ if (k<10) return k;
else return ( ( k%10) + sum( k/10) ) ;
}
void main()
{
int i,j; char src[20],find [20] , ch;
clrscr();
printf("Enbter number " ); scanf("%d" , &i);
j = sum(i);
printf( "Sum is : %d ", j);
getch();
}

To toggle character

//program made by Puneet Sharma
#include
#include
//To toggle character
char toggle(char);
void main()
{
char arr[16];
int c,i; char a;
clrscr();
scanf("%s" , arr);
for(i=0;arr[i]!='\0';i++)
{
a= toggle(arr[i]) ;
printf("%c",a);
}
}
char toggle(char c)
{
if(c>=65 && c<=122)
{
if(c>=97)
return(c-32);
else
return(c+32);
}
}

Factorial

//Program made by Puneet Sharma
#include
#include
//To calculate factorial of a no
int factorial (int i )
{
if (i==1)return 1 ;
else return( i* factorial(i-1)) ;
}
int sumdigit(int i )
{
if (i<=0) return 0 ; else return( i%10 + sumdigit(i/10) ) ; } void main() { printf("\n%d " , factorial(5) ) ; printf("\n%d " , sumdigit(31564) ) ; getch(); }

Reverse Three digit no.

//Program made by Puneet Sharma
#include < stdio.h >
#include < conio.h >
//reverse three digit no
void main()
{
int a,b,r;
clrscr();
printf("Enter 3 digit no=");
scanf("%d",&a);
r=a%10;
b=r*100;
a=a/10;
r=a%10;
b=b+r*10;
a=a/10;
b=b+a;
printf("Result is %d",b);
getch();
}

Thursday, July 30, 2009

Robowars

Robowars is an Inter College Competition. Only one team is allowed per institute.
For registration you have to send an official confirmation either through e-mail to robowars@techfest.org or a fax to 022 2572 3480 signed by a competent authority of your institute (By competent authority we mean either the head of the institute or the head of the student affairs of the institute). Once we receive the signed copy the name of the institute would be put up on the website.

To see the participating colleges till date, click link below.

http://techfest.org/archives/tf09/competitions/robowars/#


The Blood....the sweat.... the fire..... the glory....

Flying blades, violent flame throwers, the thrashing sound of metal and a junk pile of annihilated machines, welcome to the world of combat robotics. Techfest 2009 brings you Robowars- the inter college combat robotics competition, a modern day Colosseum for the next generation of war machines, the battle for supremacy can never get bigger than this.

This is what we call -- mortal combat.


1. Problem Statement

Design and construct a remote controlled combat robot for a one on one knockout tournament.


Prizes worth INR 45,000 to be won.


View the Machine Specifications »



For further queries :

Log on to : http://techfest.org/archives/tf09/competitions/robowars/


Contact :

Agyeya Sharma

Manager, Robowars
Techfest 2009
+91 98199 02815
agyeya[at]techfest[dot]org

Sidharth Mishra

Manager, Robowars
Techfest 2009
+91 98198 14256

Wednesday, July 29, 2009

Next-gen electric cars to swap lithium-air-based batteries


I guess you all use cellphones and are quite familiar with refill, recharging via coupon rather, and all. Imagine recharging your vehicles in the same way when they run high and dry. Well, it is no viewing through rose-tinted glasses since Japanese scientists are thinking seriously about a cassette refill system for the next-gen electric cars. Relying on newly developed lithium-air cells, they can do it!