Sie sind auf Seite 1von 32

PREFACE

I feel pleasure in presenting this project. I express my deep


gratitude towards all my friends and guardians who have
helped me a lot in development of this project.

Particularly I am helpful to our Physics teacher Mrs. Gita Jog


whose guide line and suggestion were vital for the project.

I have made all sincere efforts in making the project


successful. All the suggestion regarding the innovation if the
project shall be great fully acknowledgement.
Acknowledgement
I dedicate this page to all those who silently or actively left
incredible mark on our investigatory report, so that they can
be credit, which they rightly deserved.

I express my sincere gratitude to K.V. no.2 Indore for


allowing me to undertake this project work.

Preparing a project of this nature is an arduous task. I was


fortune enough to get support from a large number of person
to whom I shall always remain greatful.

I express my profound gratitude to Mrs. Gita Jog for


providing me an opportunity to work on such important project
and her constant guidance, support and encouragement during
this project.

I would heartly thank to my faculty member Mrs. Gita Jog for


his energy, enthusiasm and interest in everything boundless.
She has been a constant source of inspiration for me.

Submitted to Submitted by

Mrs. Gita Jog Mast. Bhuvnesh Tenguria


Certificate
This certify that Bhuvnesh Tenguria of class XII
science in the year 2012-2013 has completed the Physics
Investigatory Project as per the syllabus of CBSE BOARD
under the supervision of Mrs. Gita Jog . She has given a
satisfactory account in this practicles.

Date :-

Teachers signature

Mrs. Gita Jog

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.

Then , theBOMB. The original author of the used ACSII


tutorial stands on his copyright and denies us to reuse his
work. Unfortunately, Marcus was unable to spend more time on
this project and so the main driving force was gone.

My experience made as consultants for this first course must


be offered again. So, in summer 1995 Ive announced a second
round, hoping that somehow a new tutorial could be written.
Well, here is the result. I hope that you find this tutorial
useful and clear. If not, please send me a note. The tutorial is
intended to be a group work and not a work of one person. It
is essential, that you express your comments and suggestions.
Program on some
concept of
PHYSICS

#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*$*$*$*

PASSWORD PROTECTED PROGRAM *$*$*$*";

for(int i=0;i<3;i++)

getch();

clrscr();

cout<<"\n\n\n\n@@@ ENTER PASSWORD @@@ :";

cin.getline(pass,20);

if(strcmp(pass,"project"))

cout<<"\t\t@@@@@ SORRY INCORRECT

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";

cout<<"\t1. Related to motion with uniform velocity

(motion in 1-D)"<<"\n";

cout<<"\t2. Related to motion with uniform acceleration

(motion in 1-D)"<<"\n";

cout<<"\t3. Related to kinetic energy "<<"\n";

cout<<"\t4. Related to potential energy"<<"\n";

cout<<"\t5. Related to projectile motion (motion in 2-

D)"<<"\n"<<"\n";

cout<<"\tEnter your choice(1-5): ";

cin>>choice;

if(choice==1)

clrscr();

cout<<"\nTo Find:- "<<"\n";


cout<<"\n1. Velocity "<<"\n";

cout<<"2. Distance "<<"\n";

cout<<"3. Time"<<"\n"<<"\n";

cout<<"Enter your choice(1-3): ";

cin>>ch;

if(ch==1)

clrscr();

cout<<"\nEnter the distance: ";

cin>>d;

cout<<"Enter the time: ";

cin>>t;

v=d/t;

cout<<"The velocity is "<<v;

if(ch==2)

{
clrscr();

cout<<"\nEnter the velocity: ";

cin>>v;

cout<<"Enter the time: ";

cin>>t;

d=v*t;

cout<<"Distance is "<<d;

if(ch==3)

clrscr();

cout<<"\nEnter the velocity: ";

cin>>v;

cout<<"Enter the distance: ";

cin>>d;

t=d/v;

cout<<"Total time is "<<t;


}

if(choice==2)

clrscr();

cout<<"\nRelated to:-)"<<"\n";

cout<<"\n1. I Equation of motion "<<"\n";

cout<<"2. II Equation of motion"<<"\n";

cout<<"3. III Equation of motion"<<"\n"<<"\n";

cout<<"Enter your choice(1-3): ";

cin>>ch;

if(ch==1)

clrscr();

cout<<"\nTo Find:-"<<"\n";

cout<<"\n1. Final Velocity"<<"\n";

cout<<"2. Initial Velocity"<<"\n";


cout<<"3. Accelereation"<<"\n";

cout<<"4. Time"<<"\n"<<"\n";

cout<<"Enter your choice(1-4): ";

cin>>cho;

if(cho==1)

clrscr();

cout<<"\nEnter the initial velocity of the body: ";

cin>>u;

cout<<"Enter the acceleration of the body: ";

cin>>a;

cout<<"Enter the time taken by the body:";

cin>>t;

v=u+(a*t);

cout<<"The final velocity of the body is "<<v;

if(cho==2)
{

clrscr();

cout<<"\nEnter the final velocity of the body: ";

cin>>v;

cout<<"Enter the acceleration of the body: ";

cin>>a;

cout<<"Enter the time taken by the body:";

cin>>t;

u=v-(a*t);

cout<<"The initial velocity of the body is "<<u;

if(cho==3)

clrscr();

cout<<"\nEnter the initial velocity of the body: ";

cin>>u;

cout<<"Enter the final velocity of the body: ";


cin>>v;

cout<<"Enter the time taken by the body:";

cin>>t;

a=(v-u)/t;

cout<<"The acceleration of the body is "<<a;

if(cho==4)

clrscr();

cout<<"\nEnter the initial velocity of the body: ";

cin>>u;

cout<<"Enter the acceleration of the body: ";

cin>>a;

cout<<"Enter the final velocity of the body:";

cin>>v;

t=(v-u)/a;

cout<<"Total time is "<<t;


}

if(ch==2)

clrscr();

cout<<"\nToFind:-"<<"\n";

cout<<"\n1. Displacement"<<"\n";

cout<<"2. Initial velocity "<<"\n";

cout<<"3. Acceleration "<<"\n"<<"\n";

cout<<"Enter your choice(1-3): ";

cin>>cho;

if(cho==1)

clrscr();

cout<<"\nEnter the initial velocity of the body: ";

cin>>u;

cout<<"Enter the acceleration of the body: ";


cin>>a;

cout<<"Enter the time taken by the body: ";

cin>>t;

s=(u*t)+((a*pow(t,2))/2);

cout<<"The displacement is "<<s;

if(cho==2)

clrscr();

cout<<"\nEnter the displacement of the body: ";

cin>>d;

cout<<"Enter the acceleration of the body: ";

cin>>a;

cout<<"Enter the time taken by the body: ";

cin>>t;

u=((2*s)-(a*pow(t,2)))/(2*t);

cout<<"The initial velocity of the body is "<<u;


}

if(cho==3)

clrscr();

cout<<"\nEnter the initial velocity of the body: ";

cin>>u;

cout<<"Enter the displacement of the body: ";

cin>>d;

cout<<"Enter the time taken by the body: ";

cin>>t;

a=(2*(s-(a*t)))/pow(t,2);

cout<<"The acceleration of the body is "<<a;

if(ch==3)

clrscr();
cout<<"\nTo Find:-"<<"\n";

cout<<"\n1. Displacement"<<"\n";

cout<<"2. Final velocity "<<"\n";

cout<<"3. Acceleration "<<"\n";

cout<<"4. Initial velocity "<<"\n"<<"\n";

cout<<"Enter your choice(1-4): ";

cin>>cho;

if(cho==1)

clrscr();

cout<<"\nEnter the initial velocity of the body: ";

cin>>u;

cout<<"Enter the final velocity of the body: ";

cin>>v;

cout<<"Enter the acceleration of the body: ";

cin>>a;

s=((v*v)-(u*u))/(2*a);
cout<<"The displacement of the body is "<<s;

if(cho==2)

clrscr();

cout<<"\nEnter the initial velocity of the body: ";

cin>>u;

cout<<"Enter the displacement of the body: ";

cin>>s;

cout<<"Enter the acceleration of the body: ";

cin>>a;

v=pow(((u*u)+(2*a*s)),(1/2));

cout<<"The final velocity of the body is "<<v;

if(cho==3)

{
clrscr();

cout<<"\nEnter the initial velocity of the body: ";

cin>>u;

cout<<"Enter the final velocity of the body: ";

cin>>v;

cout<<"Enter the displacement of the body: ";

cin>>s;

a=((v*v)-(u*u))/(2*s);

cout<<"The acceleration of the body is "<<s;

if(cho==4)

clrscr();

cout<<"\nEnter the final velocity of the body: ";

cin>>v;

cout<<"Enter the displacement of the body: ";

cin>>s;
cout<<"Enter the acceleration of the body: ";

cin>>a;

u=pow(((v*v)-(2*a*s)),(1/2));

cout<<"The initial velocity of the body is "<<u;

if(choice==3)

clrscr();

cout<<"\nTo Find:-"<<"\n";

cout<<"\n1. Kinetic energy "<<"\n";

cout<<"2. Velocity of the body "<<"\n";

cout<<"3. Mass of the body :"<<"\n"<<"\n";

cout<<"Enter your choice(1-3): ";

cin>>ch;

if(ch==1)
{

clrscr();

cout<<"\nEnter the mass of the body: ";

cin>>m;

cout<<"Enter the velocity: ";

cin>>v;

k=(m*pow(v,2))/2;

cout<<"Kinetic energy of the body is "<<k;

if(ch==2)

clrscr();

cout<<"\nEnter the mass of the body: ";

cin>>m;

cout<<"Enter the kinetic energy of the body: ";

cin>>k;

v=pow(((2*k)/m),(1/2));
cout<<"The velocity of the body is "<<v;

if(ch==3)

clrscr();

cout<<"\nEnter the velocity of the body: ";

cin>>v;

cout<<"Enter the kinetic energy of the body: ";

cin>>k;

m=((2*k)/(v*v));

cout<<"The mass of the body is "<<m;

if(choice==4)

clrscr();

cout<<"\nTo Find:-"<<"\n";
cout<<"\n1. Potential energy "<<"\n";

cout<<"2. Mass of the body "<<"\n";

cout<<"3. Height above the ground "<<"\n"<<"\n";

cout<<"Enter your choice(1-3): ";

cin>>ch;

if(ch==1)

clrscr();

cout<<"\nEnter the mass of the body: ";

cin>>m;

cout<<"Enter the height above the ground: ";

cin>>h;

p=m*g*h;

cout<<"The potential energy of the body is "<<p;

if(ch==2)

{
clrscr();

cout<<"\nEnter the potential energy of the body: ";

cin>>p;

cout<<"Enter the height above the ground: ";

cin>>h;

m=(p/(g*h));

cout<<"The mass of the body is "<<m;

if(ch==3)

clrscr();

cout<<"\nEnter the potential energy of the body: ";

cin>>p;

cout<<"Enter the mass of the body: ";

cin>>m;

h=(p/(g*m));

cout<<"The height above the ground is "<<h;


}

if(choice==5)

clrscr();

cout<<"\nRelated to:-)"<<"\n";

cout<<"\n1. Time of flight"<<"\n";

cout<<"2. Range of the projectile "<<"\n";

cout<<"3. Maximum height of the

projectile:"<<"\n"<<"\n";

cout<<"Enter your choice(1-3): ";

cin>>ch;

if(ch==1)

clrscr();

cout<<"\nTo Find:-"<<"\n";

cout<<"\n1. Time of flight "<<"\n";


cout<<"2. Initial velocity of the projectile "<<"\n"<<"\n";

cout<<"Enter your choice(1-2): ";

cin>>cho;

if(cho==1)

clrscr();

cout<<"\nEnter the initial velocity of the projectile: ";

cin>>u;

cout<<"Enter the angle of projection: ";

cin>>o;

T=((2*u)*(sin(o*pi/180))/g);

cout<<"The time of flight is "<<T;

if(cho==2)

clrscr();

cout<<"\nEnter the time of flight: ";


cin>>T;

cout<<"Enter the angle of projection: ";

cin>>o;

u=(T*g)/(2*sin(o*pi/180));

cout<<"The initial velocity of the projectile is "<<u;

if(ch==2)

clrscr();

cout<<"\nTo Find:-"<<"\n";

cout<<"\n1. Range of the projectile "<<"\n";

cout<<"2. Initial velocity of the projectile "<<"\n"<<"\n";

cout<<"Enter your choice(1-2): ";

cin>>cho;

if(cho==1)

{
clrscr();

cout<<"\nEnter the initial velocity of the projectile: ";

cin>>u;

cout<<"Enter the angle of the projection: ";

cin>>o;

q=2*o;

R=((u*u)*sin(q*pi/180))/g;

cout<<"The range of the projectile is "<<R;

if(cho==2)

clrscr();

cout<<"\nEnter the range of the projectile: ";

cin>>R;

cout<<"Enter the angle of the projection: ";

cin>>o;

q=2*o;
u=sqrt((R*g)/sin(q*pi/180));

cout<<"The initial velocity of the projectile is "<<u;

if(ch==3)

clrscr();

cout<<"\nTo Find:-"<<"\n";

cout<<"\n1. Maximum height of the projectile "<<"\n";

cout<<"2. Initial velocity of the projectile "<<"\n"<<"\n";

cout<<"Enter your choice(1-2): ";

cin>>cho;

if(cho==1)

clrscr();

cout<<"\nEnter the initial velocity of the projectile: ";

cin>>u;
cout<<"Enter the angle of the projection: ";

cin>>o;

H=((u*u)*pow((sin(o*pi/180)),2))/(2*g);

cout<<"The maximum height of the projectile is "<<H;

if(cho==2)

clrscr();

cout<<"\nEnter the maximum height of projectile: ";

cin>>H;

cout<<"Enter the angle of the projection: ";

cin>>o;

u=sqrt((2*H*g)/(pow((sin(o*pi/180)),2)));

cout<<"The initial velocity of the projectile is "<<u;

}
cout<<"\t\t\n\nMADE BY:-)";

cout<<"\n\t\tRISHABH SAHU (XI-A)"<<\t\tHITESH

MOURYA (XI-A)<<"\n";

cout<<"\n\n\t\t\t@*@* THANK YOU *@*@";

break;

getch();

}
BIBLEOGRAPHY
All the data of project are collected through the

secondary data and analysis based on some data.

Secondary data collected from following sources which

are

Ncert Physics Book

Encyclopedia books

Das könnte Ihnen auch gefallen