Cs Project
Cs Project
Submitted to Submitted by
Date :-
Teachers signature
Principal signature
S.P. Bhatt
INTRODUCTION
The first course object-oriented Programming using c++ was
held in summer 1994 and was based on a simple ASCII
tutorial. After a call for participation, several highly
motivated people from all over the world joined course
coordinator Marcus Speh as consultants and had pushed the
course to its success. Beside of many student who spend lots
of their time to help doing organizational stuff.
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<math.h>
void main()
clrscr();
char pass[20];
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t*$*$*$*
for(int i=0;i<3;i++)
getch();
clrscr();
cin.getline(pass,20);
if(strcmp(pass,"project"))
PASSWORD !!!!!!";
else
clrscr();
int g=10;
float choice,ch,cho;
double u,s,m,h,v,d,a,t,k,p,T,R,H,o,pi=3.14159265,q;
cout<<"\n\n\t\t\tSOME BASIC FORMULAE OF
PHYSICS"<<"\n";
cout<<"\nMenu:-))"<<"\n";
(motion in 1-D)"<<"\n";
(motion in 1-D)"<<"\n";
D)"<<"\n"<<"\n";
cin>>choice;
if(choice==1)
clrscr();
cout<<"3. Time"<<"\n"<<"\n";
cin>>ch;
if(ch==1)
clrscr();
cin>>d;
cin>>t;
v=d/t;
if(ch==2)
{
clrscr();
cin>>v;
cin>>t;
d=v*t;
cout<<"Distance is "<<d;
if(ch==3)
clrscr();
cin>>v;
cin>>d;
t=d/v;
if(choice==2)
clrscr();
cout<<"\nRelated to:-)"<<"\n";
cin>>ch;
if(ch==1)
clrscr();
cout<<"\nTo Find:-"<<"\n";
cout<<"4. Time"<<"\n"<<"\n";
cin>>cho;
if(cho==1)
clrscr();
cin>>u;
cin>>a;
cin>>t;
v=u+(a*t);
if(cho==2)
{
clrscr();
cin>>v;
cin>>a;
cin>>t;
u=v-(a*t);
if(cho==3)
clrscr();
cin>>u;
cin>>t;
a=(v-u)/t;
if(cho==4)
clrscr();
cin>>u;
cin>>a;
cin>>v;
t=(v-u)/a;
if(ch==2)
clrscr();
cout<<"\nToFind:-"<<"\n";
cout<<"\n1. Displacement"<<"\n";
cin>>cho;
if(cho==1)
clrscr();
cin>>u;
cin>>t;
s=(u*t)+((a*pow(t,2))/2);
if(cho==2)
clrscr();
cin>>d;
cin>>a;
cin>>t;
u=((2*s)-(a*pow(t,2)))/(2*t);
if(cho==3)
clrscr();
cin>>u;
cin>>d;
cin>>t;
a=(2*(s-(a*t)))/pow(t,2);
if(ch==3)
clrscr();
cout<<"\nTo Find:-"<<"\n";
cout<<"\n1. Displacement"<<"\n";
cin>>cho;
if(cho==1)
clrscr();
cin>>u;
cin>>v;
cin>>a;
s=((v*v)-(u*u))/(2*a);
cout<<"The displacement of the body is "<<s;
if(cho==2)
clrscr();
cin>>u;
cin>>s;
cin>>a;
v=pow(((u*u)+(2*a*s)),(1/2));
if(cho==3)
{
clrscr();
cin>>u;
cin>>v;
cin>>s;
a=((v*v)-(u*u))/(2*s);
if(cho==4)
clrscr();
cin>>v;
cin>>s;
cout<<"Enter the acceleration of the body: ";
cin>>a;
u=pow(((v*v)-(2*a*s)),(1/2));
if(choice==3)
clrscr();
cout<<"\nTo Find:-"<<"\n";
cin>>ch;
if(ch==1)
{
clrscr();
cin>>m;
cin>>v;
k=(m*pow(v,2))/2;
if(ch==2)
clrscr();
cin>>m;
cin>>k;
v=pow(((2*k)/m),(1/2));
cout<<"The velocity of the body is "<<v;
if(ch==3)
clrscr();
cin>>v;
cin>>k;
m=((2*k)/(v*v));
if(choice==4)
clrscr();
cout<<"\nTo Find:-"<<"\n";
cout<<"\n1. Potential energy "<<"\n";
cin>>ch;
if(ch==1)
clrscr();
cin>>m;
cin>>h;
p=m*g*h;
if(ch==2)
{
clrscr();
cin>>p;
cin>>h;
m=(p/(g*h));
if(ch==3)
clrscr();
cin>>p;
cin>>m;
h=(p/(g*m));
if(choice==5)
clrscr();
cout<<"\nRelated to:-)"<<"\n";
projectile:"<<"\n"<<"\n";
cin>>ch;
if(ch==1)
clrscr();
cout<<"\nTo Find:-"<<"\n";
cin>>cho;
if(cho==1)
clrscr();
cin>>u;
cin>>o;
T=((2*u)*(sin(o*pi/180))/g);
if(cho==2)
clrscr();
cin>>o;
u=(T*g)/(2*sin(o*pi/180));
if(ch==2)
clrscr();
cout<<"\nTo Find:-"<<"\n";
cin>>cho;
if(cho==1)
{
clrscr();
cin>>u;
cin>>o;
q=2*o;
R=((u*u)*sin(q*pi/180))/g;
if(cho==2)
clrscr();
cin>>R;
cin>>o;
q=2*o;
u=sqrt((R*g)/sin(q*pi/180));
if(ch==3)
clrscr();
cout<<"\nTo Find:-"<<"\n";
cin>>cho;
if(cho==1)
clrscr();
cin>>u;
cout<<"Enter the angle of the projection: ";
cin>>o;
H=((u*u)*pow((sin(o*pi/180)),2))/(2*g);
if(cho==2)
clrscr();
cin>>H;
cin>>o;
u=sqrt((2*H*g)/(pow((sin(o*pi/180)),2)));
}
cout<<"\t\t\n\nMADE BY:-)";
MOURYA (XI-A)<<"\n";
break;
getch();
}
BIBLEOGRAPHY
All the data of project are collected through the
are
Encyclopedia books