SOURCE CODE:
/*To determine the maximum height,time of flight and horizontal range of a projectile motion*/
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float u,g=9.8,theta,T,R,h,H,rtheta;
clrscr();
printf("Enter the velocity:");
scanf("%f",&u);
printf("\nEnter angle of prijection:");
scanf("%f",&theta);
rtheta=3.1415*theta/180;
H=u*u/(2*g);
T=2*u*sin(rtheta)/g;
R=u*u*sin(2*rtheta); ...
Saturday, August 21, 2010
TO GENERATE AN AMPLITUDE MODULATED WAVE
SOURCE CODE:
/*To generate an amplitude modulated wave*/ #include<graphics.h>
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int gm,gd=DETECTED;
float Ec,Wc=300,Ws=15,m,t,grx,gry,y;
printf("Amplitude of carrier wave: \n");
scanf("%f",&Ec);
printf("Modulation factor: \n");
scanf("%f",&m);
initgraph(&gd,&gm,"");
setcolor(WHITE);
line(10,10,10,200);
line(10,100,300,100);
for(t=0;t<9;t=t+.0001)
{
grx=10+325*t;
y=Ec*cos(Wc*t);
gry=100-y*10;
putpixel(grx,gry,RED);
}
line(10,200,10,500); ...
HOW TO CREATE VIRUS PROGRAM IN C LANGUAGE.
Hi ,every computer programing students have a dream to make a computer virus. Here we will study simple virus program created in c.(only for study pupose)You test the program in your own computer.There are several types of viruses with different functions.Some of which delete your computers' important files and folders,some change the configurations of your computer system,some dump your hard disc.There are some which can damage your RAM permenently.
(1)The c program which shutdown the windows operating system Write the following code in tubo c.
CODE:
void main(void)
{
system("shutdown-s"); ...
Subscribe to:
Posts (Atom)