tan x Graph

Description:           This program creates a graph for tan x.   Primary Inputs:    —— Primary Output:    tan x Graph Platform Used:      Turbo C++ version 3.0, Borland International Inc.   #include #include #include #include void main() { int gd=DETECT,gm; int x,y; initgraph(&gd,&gm,"c:\\tc\\bgi"); for(x=0;x

Sine Curve

Description:           This program creates a sine curve   Primary Inputs:    —– Primary Output:    A sine curve for prespecifed parameters. Platform Used:      Turbo C++ version 3.0, Borland International Inc.   /*This program generates the sine curve for prespecified parameters. */ #include #include #include #include #include void main() { int gdriver=DETECT,gmode,i; float x=0; clrscr(); initgraph(&gdriver,&gmode,"c:\\tc\\bgi"); for(i=0;i

Car

Description:           This program creates graphic for moving car. Primary Inputs:    ——- Primary Output:    moving car Platform Used:      Turbo C++ version 3.0, Borland International Inc.   #include #include #include #include void main() { int gdriver = DETECT; int gmode; int i; initgraph(&gdriver,&gmode,"c:\\tc\\bgi"); line(0,400,640,400); for(i=0;i

net.make

Make file for the Graph Simulator   /*net.make*/ net.out : net.o       g++ -o net.out net.o net.o : net.cpp help.h       g++ -c net.cpp clean :       rm *.o net.out