0 views

Uploaded by Amandeep Singh

introduction to gravitational force and calculates the gravitation force between two objects once you provide mass of two objects and distance between these two objects.

- clicker
- Experiment
- Mutants & Masterminds 3e - Power Profile - Gravity Powers
- Aetherometry and Gravity: An Introduction
- 1959-03
- Grav
- ST_SCIENCE 6_Q3
- G481 Module 2 Forces in Action Questions
- Newton's Law of Univerasl Gravitation
- Kavi Portfolio q3
- 14fs lesson plan 6
- file_46814
- force.pdf
- Newton Law Worked Examples
- forces motion and velocoty unit
- User Define Lang
- Microgravity Mathematics
- Mesh Fabric
- Test 1 Physics
- Spring Constant Lab

You are on page 1of 6

Project Report on

Gravitational Force Calculator using c++

examination +2 Non-Medical conducted

by

Introduction

Every object in the universe attracts every other object with a force which is

proportional to the product of their masses and inversely proportional to the

square of the distance between them. The force is along the line joining the

centres of two objects.

Fig.1

Let two objects A and B of masses M and m lie at a distance d from each other as

shown in Fig. 1.. Let the force of attraction between two objects be F. According to the

universal law of gravitation, the force between two objects is directly proportional to

the product of their masses. That is,

F M*m ----------

(1)

And the force between two objects is inversely proportional to the square of the

distance between them, that is,

F α 1 ⁄ d2 ---------- (2)

F α M x m ⁄ d2 ---------- (3)

constant. By multiplying crosswise, Eq. (4) gives

F×d 2

=GM×m

or G = F d 2/ M m ---------- (5)

The SI unit of G can be obtained by substituting the units of force, distance and mass in

Eq. (5) as N m2 kg–2.

The value of G was found out by Henry Cavendish (1731 – 1810) by using a sensitive

balance. The accepted value of

We know that there exists a force of attraction between any two objects. Compute the

value of this force between you and your

friend sitting closeby. Conclude how you do not experience this force!

The universal law of gravitation successfully explained several phenomena which were

believed to be unconnected:

2. the motion of the moon around the earth;

3. the motion of planets around the Sun; and

4. the tides due to the moon and the Sun.

Program / Source Code

#include <iostream.h>

#include <conio.h>

#define G 6.67E-11

class GFCalculator

{

private:

float m1,m2;

float r,f;

//m1,m2 mass of two objects in kg

//r is distance betwween two objects

//f is force of attraction between two objects in

public:

GFCalculator()

{ m1=0;m2=0;}

void readmass()

{

cout<<"Enter mass of first object in Kg : ";cin>>m1;

cout<<"Enter mass of second object in Kg : ";cin>>m2;

}

void readdistance()

{

cout<<"Enter distance between two objects in meter :

";cin>>r;

}

void calc_and_disp_info()

{

f=G*m1*m2/(r*r);

cout<<endl<<endl<<endl;

cout<<"Gravitatinal Constant : "<<G<<" cubic

meter/kg/sec square"<<endl;

cout<<"M1 : "<<m1<<" Kg"<<endl;

cout<<"M2 : "<<m2<<" Kg"<<endl;

cout<<"Distance : "<<r<<" meter"<<endl;

cout<<"Gravitational force : "<<f<<" Newton";

}

};

void main()

{

GFCalculator GF;

clrscr();

GF.readmass();

GF.readdistance();

GF.calc_and_disp_info();

getch();

}

Output

- clickerUploaded byecd4282003
- ExperimentUploaded byAIra Ortega
- Mutants & Masterminds 3e - Power Profile - Gravity PowersUploaded byMichael Morgan
- Aetherometry and Gravity: An IntroductionUploaded byHaris_Isa
- 1959-03Uploaded bycharlesfort
- GravUploaded byAnonymous JamqEgqqh1
- ST_SCIENCE 6_Q3Uploaded byBenj Alejo
- G481 Module 2 Forces in Action QuestionsUploaded byAmber
- Newton's Law of Univerasl GravitationUploaded byMuhammad Mosa
- Kavi Portfolio q3Uploaded bySavvy Kaur
- 14fs lesson plan 6Uploaded byapi-285003798
- file_46814Uploaded byJames James
- force.pdfUploaded bycitra_tdz
- Newton Law Worked ExamplesUploaded byMuhammad Mosa
- forces motion and velocoty unitUploaded byapi-198064306
- User Define LangUploaded byTricia Johnson
- Microgravity MathematicsUploaded byAviation/Space History Library
- Mesh FabricUploaded bySid Data
- Test 1 PhysicsUploaded byShiva Ram Prasad Pulagam
- Spring Constant LabUploaded byBhakti Patel
- Earth does not move around the SunUploaded byJoe Nahhas
- Chapter 1 HandoutUploaded byVincentTang
- Einstein GTRUploaded byAntony Philip
- m2Uploaded bycharleybeth
- Question Bank MechanicsUploaded byqtmc
- smooth-moves-unit-planUploaded byapi-296001398
- Chapter 28Uploaded byDsn Sarma
- BitsUploaded bymkr518
- Abp Dynamics Multiple Choice 2016-02-24Uploaded byartsidartsy
- EBOPhDCap3a.pdfUploaded byEfrain Benavides

- Tesla Electricity English Full VersionUploaded bySkripac
- Numerical modeling of cavity flow on bottom of a stepped planing hullUploaded byAlex Maks
- FAILURE.pptxUploaded byomarseto
- 6.Work Power EnergyUploaded byShahbaz Khan
- ANALYSIS_AND_DESIGN_OF_T-BEAM_BRIDGE_SUP (1).docxUploaded byKian Bautista
- FEM.pdfUploaded byaybik
- stressconcUploaded bygu1000
- cmi-2-17.pdfUploaded byjeremy
- NusseltUploaded byViviana Espinoza Pizarro
- Mechanical BehaviourUploaded byLuis Nunes
- Outline 10Uploaded byCarlos Rene Mamani Trujillo
- Fluid structure interaction effectsUploaded byvttrlc
- eth-8147-01.pdfUploaded byKopTer Jacop
- CycloneUploaded byhcorpdgp
- Lacey ArticleUploaded byFred_Mayweather
- ProjectileMotion.pdfUploaded byShameem Akhter
- Kaplan Design Marko KogovsekUploaded byIvan Batistic Belo
- Pipe Flow Expert Compress Ible EquationsUploaded byIsahbani
- Week 3Uploaded byMarculus Jermaine Robinson
- II Sem 2 Marks QuUploaded byGnana Ambica
- Helical Spring DesignUploaded byHKHKBOOKS
- ThermodynamicsUploaded byChristopher Deleña Edaugal
- Boards NoteUploaded byShajukk
- bap.pdfUploaded byAdel Aldus
- PRECO_English.pdfUploaded byAmal Hajar
- configuration_drone_motorUploaded bydiego.peinado8856
- SSC JE 2013 100-200 mechUploaded byjiteshpaul
- Material Failure TheoryUploaded bysgssgs1
- Basic Dental Materials - Jaypee Brothers; 2nd edition (1 December 2004).pdfUploaded byMarcela Tighineanu
- 86322 (1)Uploaded byMajid Khan