IC Engine 2.0

Submitted By: krishna268code
Rating: (Not rated) (Rate It)


/*
==================================
NAME - KRISHNA KUMAR

AGE AT PROGRAMING THIS CODE - 17 YEARS

QUALIFICAION AT PROGRAMING THIS CODE-10TH PASS (NCERT)

[[Email Removed]]

DATE OF LOUNCHING CODE -MARCH 2004



My interesting feild & hobbies
===============================
Electronics,programing,robotics,spoil philosophies, etc.

>Believe in skills and not in qualification.
>Want to (make may be programer) friends



Some big programes created by me-
=================================
 TALK2ME - A simple graphics programe
 SG ZONE-  Special Graphics Zone containig 30 unique  animations.
 KRIOS  -  A simple prototype oprating system
 3D CUBE ANALYSIS -A GUI 3D programe for discribing 3D cube rotation,axcis etc.

  programing of new codes is goingon

 Licence   : Freeware (Please give the credit of programming to author.)


Software Details
====================
Developed in   : C++
Compiler used : TC++ 3.0


CONTACT ME TO ASK ANY QUESTION
===============================
KRISHNA KUMAR CO R.M CHAURASIA
Q.NO. I-B-151, V.V COLONY
SHAKTINAGAR SONBHADRA (U.P) INDIA

E-MAIL [[Email Removed]]

PHONE NO. 05446-234109
====================================== */



 #include<iostream.h>
#include<dos.h>
#include<stdio.h>
#include<math.h>
#include<conio.h>
#include<graphics.h>
#include<process.h>
#include<stdlib.h>
void vp(int x,int tc,int bk,char *text)
{

  setcolor(tc);
  settextstyle(2,0,5);
  outtextxy(x,-4,text);
  setcolor(bk);
  rectangle(7,14,getmaxx()-7,getmaxy()-7);
  rectangle(6,13,getmaxx()-6,getmaxy()-6);
  setviewport(8,15,getmaxx()-8,getmaxy()-8,3);
 }

void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"");
setcolor(11);
vp(10,15,2,"INTERNAL COMBUTION ENGINE  By Krishna Kr.([[Email Removed]]) press any key for exit");
int i=60;
while(!kbhit())
  {


///////////////////////////////##1////////////////////////////////////////////
  setcolor(14);
  circle(400,250,45); //wheel
  circle(400,250,2);
  circle(400,250,49);

  circle(400,250,5);//center of wheel
   putpixel(400,240,14); putpixel(400,260,14);
   //----------------------------------
   line(150,210,300,210)//upper cylinder
   line(150,210,150,220);
   //----------------------------------
   line(152,220,152,240);//upper volve
   //-----------------------------------
   line(150,240,150,270); //middel
   //-------------------------------------
   line(152+10,270,152+10,290);//down volve ( open )
   //---------------------------------------------
   line(150,300,300,300); //down  cylinder
   line(150,300,150,290);
   //--------------------------------------
   line(270,210,270,300);     //  piston
   line(270+5,210,270+5,300); //
   //-----------------------------------------
   line(270,260,400,220);    //crank
   line(270,260-5,400,220-5);
   circle(400,215,5);
   //------------------------------------------------
   line(130,260,165,260);   //spark plug
   line(165,260,165,255 );
   circle(150,260,6);
   circle(140,260,3);
   circle(135,260,3);
   //-----------------------------------
   settextstyle(2,0,4);
   setcolor(15);
   outtextxy(60,210,"OUTLET VOLVE");
   outtextxy(60,250,"SPARK PLUG");
   outtextxy(60,280,"INTLET VOLVE");
   outtextxy(460,250,"WHEEL");
   outtextxy(200,180,"CYLINDER");
   outtextxy(290,180,"PISTON & CRANK SAFT");
   outtextxy(200,310,"STROK 1");
   line(320,220,350,195);
   setcolor(14);
  // sound(2000);
   delay(i);
   nosound();

   clearviewport();

/////////////////////////////##2////////////////////////////////////////////
     putpixel(390,250,15);putpixel(430,270,15);

circle(400,250,45); //wheel
circle(400,250,2);
circle(400,250,49);

circle(400,250,5);//center circle of wheel
   //---------------------------------------
   line(150,210,300,210)//upper cylinder
   line(150,210,150,220);
   //---------------------------------------
   line(152,220,152,240);//upper volve
   //----------------------------------------
   line(150,240,150,270); //middel
   //----------------------------------------
   line(152+0,270,152+0,290);//down volve (CLOSE )
   //----------------------------------------
   line(150,300,300,300); //down  cylinder
   line(150,300,150,290);
   //----------------------------------------
   line(290,210,290,300);     //  piston
   line(290+5,210,290+5,300); //
   //------------------------------------------
   line(290,260,440,250);    //crank
   line(290,260-5,440,250-5);
   circle(435,250,5);
   //----------------------------------------
   line(130,260,165,260)//spark plug
   line(165,260,165,255 );
   circle(150,260,6);
   circle(140,260,3);
   circle(135,260,3);
   settextstyle(2,0,4);
   setcolor(15);
   outtextxy(60,210,"OUTLET VOLVE");   outtextxy(60,250,"SPARK PLUG");
   outtextxy(60,280,"INTLET VOLVE");   outtextxy(460,250,"WHEEL");
   outtextxy(200,180,"CYLINDER");   outtextxy(290,180,"PISTON & CRANK SAFT");
   outtextxy(200,310,"STROK  2");   line(320,220,350,195);
   setcolor(14);
 // sound(3000);
   delay(i);
   nosound();
   clearviewport();

//////////////////////////##3///////////////////////////////////////////////
 circle(400,250,45); //wheel
 circle(400,250,2);
 circle(400,250,49);
 circle(400,250,5);//center circle of wheel

 for(int px=0;px<30;px++)
 {putpixel(160+random(20),250+random(20),15);
 putpixel(160+random(25),250+random(20),15);}

   //---------------------------------------
   line(150,210,300,210)//upper cylinder
   line(150,210,150,220);
   //--------------------------------------
   line(152,220,152,240);//upper volve
   //--------------------------------------
   line(150,240,150,270); //middel
   //---------------------------------------
   line(152+0,270,152+0,290);//down volve (CLOSE )
   //--------------------------------------
   line(150,300,300,300); //down  cylinder
   line(150,300,150,290);
   //--------------------------------------
   line(240,210,240,300);     //  piston
   line(240+5,210,240+5,300); //
   //--------------------------------------
   line(240,260,400,290);    //crank
   line(240,260-5,400,290-5);
   circle(400,290,5);
   //-----------------------------------------
   line(130,260,165,260); //spark plug
   line(165,260,165,255 );
   circle(150,260,6);
   circle(140,260,3);
   circle(135,260,3);
    settextstyle(2,0,4);
   setcolor(15);
   outtextxy(60,210,"OUTLET VOLVE");   outtextxy(60,250,"SPARK PLUG");
   outtextxy(60,280,"INTLET VOLVE");   outtextxy(460,250,"WHEEL");
   outtextxy(200,180,"CYLINDER");   outtextxy(290,180,"PISTON & CRANK SAFT");
   outtextxy(200,310,"STROK   3");   line(320,220,350,195);
   setcolor(14);
  // sound(4000);
   delay(i);
   nosound();
   clearviewport();

///////////////////////##4///////////////////////////////////////////////////

circle(400,250,45); //wheel
circle(400,250,2);
circle(400,250,49);

circle(400,250,5);
   //------------------------------
   line(150,210,300,210); //upper cylinder
   line(150,210,150,220);
   //-------------------------------
   line(152+10,220,152+10,240);//upper volve(OPEN)
   //-------------------------------
   line(150,240,150,270); //middel
   //------------------------------
   line(152+0,270,152+0,290);//down volve (CLOSE )
   //-------------------------------
   line(150,300,300,300); //down cylinder
   line(150,300,150,290);
   //------------------------------------
   line((270-60),210,(270-60),300);     //  piston
   line((270-60)+5,210,(270-60)+5,300)//  piston
   //--------------------------------------
   line(270-55,260,400-45,220+40)//crank
   line(270-55,(260-5),400-45,(220-5)+40);
   circle(360,255,5);
   //----------------------------------------
   line(130,260,165,260)// spark plug
   line(165,260,165,255 );
   circle(150,260,6);
   circle(140,260,3);
   circle(135,260,3);
    settextstyle(2,0,4);
   setcolor(15);
   outtextxy(60,210,"OUTLET VOLVE");   outtextxy(60,250,"SPARK PLUG");
   outtextxy(60,280,"INTLET VOLVE");   outtextxy(460,250,"WHEEL");
    outtextxy(200,180,"CYLINDER");   outtextxy(290,180,"PISTON & CRANK SAFT");
   outtextxy(200,310,"STROK    4");
   line(320,220,350,195);
   setcolor(14);
 // sound(5000);
  delay(i);
  nosound();
  clearviewport();

     }
}
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.