Finding Robotic Path and Distance

Posted March 24th, 2010 in Programming Corner by Paran

#include<iostream.h>

#include<conio.h>

#include<math.h>

void main()

{ clrscr();

int x,x1,y,y1,i=0;

x=x1=35; y=y1=12;

cout<<”\t Starting point ( 35,12 ).\n\t Starting point is notified by * “; Continue Reading »

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Random Number

Posted March 24th, 2010 in Programming Corner by Paran

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int x0,k,a,m,i,j,random[20],r;
cout<<”Enter your x0 value = “;
cin>>x0; Continue Reading »

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Chemical Reaction

Posted March 24th, 2010 in Programming Corner by Paran

#include<iostream.h>

#include<conio.h>

void main()

{  clrscr();

float A[52], B[52], C[52], k1= 0.008, k2= 0.002, del= 0.1, time= 0.0;

A[0]= 100.0; B[0]= 50.0; C[0]= 0.0;

cout<<”\tTime\tA][i]\t\tB[i]\t\tC[i]\n\n”; Continue Reading »

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Detect bomber fighter path

Posted March 24th, 2010 in Programming Corner by Paran

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

void main(){
clrscr();
int xb[13]={80,90,99,108,116,125,133,141,151,160,169,179,180} ;
int yb[13]={0,-2,-5,-9,-15,-18,-23,-29,-28,-25,-21,-20,-17} ;
float xf[13], yf[13], vf= 20.0, sin, cos, time, distance, dist_range=10 ; Continue Reading »

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)