SlideShare a Scribd company logo
1 of 1
Download to read offline
START
END
Display
==========================
Welcome
===========================
Basic Physics CalculatorMenu
===========================
1.Linear Motion
2.Newton's Laws of Motion
3.Moment of Force
4.Work and Energy
Declare Variables
i,j,k,o,p,q,n as int
a,u,v,t,s,F,m,a1,M,F1,d,P,t1,F2,
v1,s1,W,PE,KE,Ep,Eps,K,S,m1,g,
h,m2,v2 as float
Display
"Choose topic : "
Read & store the
input, i
(i==1)
Display
You choose Linear Motion
======================
==You have to know 3 variable
to find others variable==
a=acceleration (m/s^2)
u=initial velocity (m/s)
v=final velocity (m/s)
t=time (s)
s=displacement (m)
What did 3 variable you know?
1.s , u , v 6.a , t , s
2.u , v , t 7.v , t , a
3.v , t , s 8.v , u , a
4.t , s , u 9.u , a , s
5.u , t , a 10.a , s , v
Please choose :
Read & store the
input, j
(j==1)
Display
INPUT s :
Read & store the
input, s
Display
INPUT u :
Read & store the
input, u
Display
INPUT v :
Read & store the
input, v
Calculate
t=(2*s)/(u+v)
a=(v*v-u*u)/(2*s)
Display
t=%.2f,t
a=%.2f,a
(j==2)
Display
INPUT u :
Read & store the
input, u
Display
INPUT v :
Read & store the
input, v
Display
INPUT t :
Read & store the
input, t
Calculate
s=(((u+v)/2)*t)
a=((v-u)/t)
Display
s=%.2f,s
a=%.2f,a
(j==3)
Display
INPUT v :
Read & store the
input, v
Display
INPUT t :
Read & store the
input, t
Display
INPUT s :
Read & store the
input, s
Calculate
u=(((2*s)/t)-v)
a=((v-u)/t)
Display
u=%.2f,u
a=%.2f,a
(j==4)
Display
INPUT t :
Read & store the
input, t
Display
INPUT s :
Read & store the
input, s
Display
INPUT u :
Read & store the
input, u
Calculate
v=(((2*s)/t)-u))
a=((v-u)/t)
Display
v=%.2f,v
a=%.2f,a
(j==5)
Display
INPUT u :
Read & store the
input, u
Display
INPUT t :
Read & store the
input, t
Display
INPUT a :
Read & store the
input, a
Calculate
v=(u+(a*t))
s=(((u+v)/2)*t)
Display
v=%.2f,v
s=%.2f,s
(j==6)
Display
INPUT a :
Read & store the
input, a
Display
INPUT t :
Read & store the
input, t
Display
INPUT s :
Read & store the
input, s
Calculate
v=((s/t)+(a*t/2))
u=(((2*s)/t)-v)
Display
v=%.2f,v
u=%.2f,u
(j==7)
Display
INPUT v :
Read & store the
input, v
Display
INPUT t :
Read & store the
input, t
Display
INPUT a :
Read & store the
input, a
Calculate
u=(v-(a*t))
s=(((u+v)/2)*t)
Display
u=%.2f,u
s=%.2f,s
(j==8)
Display
INPUT v :
Read & store the
input, v
Display
INPUT u :
Read & store the
input, u
Display
INPUT a :
Read & store the
input, a
Calculate
t=((v-u)/a)
s=(((u+v)/2)*t)
Display
t=%.2f,t
s=%.2f,s
(j==9)
Display
INPUT u :
Read & store the
input, u
Display
INPUT a :
Read & store the
input, a
Display
INPUT s :
Read & store the
input, s
Calculate
v=sqrt((u*u)+(2*a*s))
t=((v-u)/a)
Display
v=%.2f,v
t=%.2f,t
(j==10)
Display
INPUT a :
Read & store the
input, a
Display
INPUT s :
Read & store the
input, s
Display
INPUT v :
Read & store the
input, v
Calculate
u=sqrt((v*v)-(2*a*s))
t=((v-u)/a)
Display
u=%.2f,
t=%.2f,t
Display
Errortry again
(i==2)
Display
You choose Linear Motion
======================
What do you want to find?
1.F=Net Force (N)
2.m=Mass (kg)
3.a=Acceleration (m/s^2)
Please choose :
Read & store the
input, k
(k==1)
Display
INPUT m :
Read & store the
input, m
Display
INPUT a :
Read & store the
input, a1
Calculate
F=m*a1
Display
F=%.2f,F
(k==2)
Display
INPUT F :
Read & store the
input, F
Display
INPUT a :
Read & store the
input, a1
Calculate
m=F/a1
Display
m=%.2f,m
(k==3)
Display
INPUT F :
Read & store the
input, F
Display
INPUT m :
Read & store the
input, m
Calculate
a1=F/m;
Display
a=%.2f,a1
Display
Errortry again
Display
Use this equation
: F=ma
Display
Use this equation
: m=F/a
Display
Use this equation
: a=F/m
(i==3)
Display
You choose Moment of Force
======================
What do you want to find?
1.M=Moment(N.m)
2.F=Force (N)
3.d=distance (m)
Please choose :
Read & store the
input, o
(o==1)
Display
INPUT F :
Read & store the
input, F1
Display
INPUT d :
Read & store the
input, d
Calculate
M=F1*d
Display
M=%.2f,M
(o==2)
Display
INPUT M :
Read & store the
input, M
Display
INPUT d :
Read & store the
input, d
Calculate
F1=M/d
Display
F=%.2f,F1
(o==3)
Display
INPUT M :
Read & store the
input, M
Display
INPUT F :
Read & store the
input, F1
Calculate
d=M/F1
Display
d=%.2f,d
Display
Errortry again
Display
Use this equation
: M=Fd
Display
Use this equation
: F=M/d
Display
Use this equation
: d=M/F
(i==4)
Display
You choose Work and
Energy
======================
What do you want to find?
1.W=Work (J)
2.PE=PotentialEnergy (J)
3.KE=Kinetic Energy (J)
Please choose :
Read & store the
input, p
(p==1)
Display
==You choose to find work==
What did variables you know?
P=power t=time
F=Force v=velocity
s=second
1.P,t
2.F,s
3.F,v,t
Please choose :
Read & store the
input, q
(q==1)
Display
INPUT P :
Read & store the
input, P
Display
INPUT t :
Read & store the
input, t1
Calculate
W=P*t1
Display
W=%.2f,W
(q==2)
Display
INPUT F :
Read & store the
input, F2
Display
INPUT s :
Read & store the
input, s1
Calculate
W=F2*s1
Display
W=%.2f,W
(q==3)
Display
INPUT F :
Read & store the
input, F2
Display
INPUT v :
Read & store the
input, v1
Calculate
W=F2*v1*t1
Display
W=%.2f,W
Display
INPUT t :
Read & store the
input, t1
Display
Errortry again
(p==2)
Display
==You choose to find work==
What did variables you know?
1.Ep=Gravitational Potential
Energy (J)
2.Eps=Elastic Potential Energy
(J)
Please choose :
Read & store the
input, n
Display
m=mass K=spring constant
g=gravity S=amount of stretch
h=height
(n==1)
Display
INPUT m :
Read & store the
input, m1
Display
INPUT g :
Read & store the
input, g
Calculate
Ep=m1*g*h
Display
Ep=%.2f,Ep
Display
INPUT h :
Read & store the
input, h
Display
INPUT K :
Read & store the
input, K
Display
INPUT S :
Read & store the
input, S
Calculate
Eps=0.5*K*S*S
Display
Eps=%.2f,Eps
(n==2)
Display
Errortry again
(p==3)
Display
==You choose to find Kinetic
Energy==
m=mass (kg)
v=velocity (m/s)
Display
INPUT m :
Read & store the
input, m2
Display
INPUT v :
Read & store the
input, v2
Calculate
KE=0.5*m2*v2*v2
Display
KE=%.2f,KE
Display
Errortry again
Display
Errortry again
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Display
Exit ::choose 1
or anything
Back to Main
Memu :: choose
2 only
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
Read & store the
input, z
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu (z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu
(z==1)
(z==2)
Nothing
Back to Main
Menu

More Related Content

More from Pongpob Srisaman

8.บรรณานุกรม
8.บรรณานุกรม8.บรรณานุกรม
8.บรรณานุกรม
Pongpob Srisaman
 
6.รูปภาพประกอบ
6.รูปภาพประกอบ6.รูปภาพประกอบ
6.รูปภาพประกอบ
Pongpob Srisaman
 
5.ส่วนสรุปเนื้อหา
5.ส่วนสรุปเนื้อหา5.ส่วนสรุปเนื้อหา
5.ส่วนสรุปเนื้อหา
Pongpob Srisaman
 
4.ส่วนเนื้อหา
4.ส่วนเนื้อหา4.ส่วนเนื้อหา
4.ส่วนเนื้อหา
Pongpob Srisaman
 
3.ส่วนบทนำ
3.ส่วนบทนำ3.ส่วนบทนำ
3.ส่วนบทนำ
Pongpob Srisaman
 
2.ส่วนคำนำ และสารบัญ
2.ส่วนคำนำ และสารบัญ2.ส่วนคำนำ และสารบัญ
2.ส่วนคำนำ และสารบัญ
Pongpob Srisaman
 
1.ส่วนหน้าปก (รายชื่อผู้จัดทำ)
1.ส่วนหน้าปก (รายชื่อผู้จัดทำ)1.ส่วนหน้าปก (รายชื่อผู้จัดทำ)
1.ส่วนหน้าปก (รายชื่อผู้จัดทำ)
Pongpob Srisaman
 
7.ภาคผนวก (แปลน)
7.ภาคผนวก (แปลน)7.ภาคผนวก (แปลน)
7.ภาคผนวก (แปลน)
Pongpob Srisaman
 

More from Pongpob Srisaman (8)

8.บรรณานุกรม
8.บรรณานุกรม8.บรรณานุกรม
8.บรรณานุกรม
 
6.รูปภาพประกอบ
6.รูปภาพประกอบ6.รูปภาพประกอบ
6.รูปภาพประกอบ
 
5.ส่วนสรุปเนื้อหา
5.ส่วนสรุปเนื้อหา5.ส่วนสรุปเนื้อหา
5.ส่วนสรุปเนื้อหา
 
4.ส่วนเนื้อหา
4.ส่วนเนื้อหา4.ส่วนเนื้อหา
4.ส่วนเนื้อหา
 
3.ส่วนบทนำ
3.ส่วนบทนำ3.ส่วนบทนำ
3.ส่วนบทนำ
 
2.ส่วนคำนำ และสารบัญ
2.ส่วนคำนำ และสารบัญ2.ส่วนคำนำ และสารบัญ
2.ส่วนคำนำ และสารบัญ
 
1.ส่วนหน้าปก (รายชื่อผู้จัดทำ)
1.ส่วนหน้าปก (รายชื่อผู้จัดทำ)1.ส่วนหน้าปก (รายชื่อผู้จัดทำ)
1.ส่วนหน้าปก (รายชื่อผู้จัดทำ)
 
7.ภาคผนวก (แปลน)
7.ภาคผนวก (แปลน)7.ภาคผนวก (แปลน)
7.ภาคผนวก (แปลน)
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 

Basic physics calculator c++(flowchart)

  • 1. START END Display ========================== Welcome =========================== Basic Physics CalculatorMenu =========================== 1.Linear Motion 2.Newton's Laws of Motion 3.Moment of Force 4.Work and Energy Declare Variables i,j,k,o,p,q,n as int a,u,v,t,s,F,m,a1,M,F1,d,P,t1,F2, v1,s1,W,PE,KE,Ep,Eps,K,S,m1,g, h,m2,v2 as float Display "Choose topic : " Read & store the input, i (i==1) Display You choose Linear Motion ====================== ==You have to know 3 variable to find others variable== a=acceleration (m/s^2) u=initial velocity (m/s) v=final velocity (m/s) t=time (s) s=displacement (m) What did 3 variable you know? 1.s , u , v 6.a , t , s 2.u , v , t 7.v , t , a 3.v , t , s 8.v , u , a 4.t , s , u 9.u , a , s 5.u , t , a 10.a , s , v Please choose : Read & store the input, j (j==1) Display INPUT s : Read & store the input, s Display INPUT u : Read & store the input, u Display INPUT v : Read & store the input, v Calculate t=(2*s)/(u+v) a=(v*v-u*u)/(2*s) Display t=%.2f,t a=%.2f,a (j==2) Display INPUT u : Read & store the input, u Display INPUT v : Read & store the input, v Display INPUT t : Read & store the input, t Calculate s=(((u+v)/2)*t) a=((v-u)/t) Display s=%.2f,s a=%.2f,a (j==3) Display INPUT v : Read & store the input, v Display INPUT t : Read & store the input, t Display INPUT s : Read & store the input, s Calculate u=(((2*s)/t)-v) a=((v-u)/t) Display u=%.2f,u a=%.2f,a (j==4) Display INPUT t : Read & store the input, t Display INPUT s : Read & store the input, s Display INPUT u : Read & store the input, u Calculate v=(((2*s)/t)-u)) a=((v-u)/t) Display v=%.2f,v a=%.2f,a (j==5) Display INPUT u : Read & store the input, u Display INPUT t : Read & store the input, t Display INPUT a : Read & store the input, a Calculate v=(u+(a*t)) s=(((u+v)/2)*t) Display v=%.2f,v s=%.2f,s (j==6) Display INPUT a : Read & store the input, a Display INPUT t : Read & store the input, t Display INPUT s : Read & store the input, s Calculate v=((s/t)+(a*t/2)) u=(((2*s)/t)-v) Display v=%.2f,v u=%.2f,u (j==7) Display INPUT v : Read & store the input, v Display INPUT t : Read & store the input, t Display INPUT a : Read & store the input, a Calculate u=(v-(a*t)) s=(((u+v)/2)*t) Display u=%.2f,u s=%.2f,s (j==8) Display INPUT v : Read & store the input, v Display INPUT u : Read & store the input, u Display INPUT a : Read & store the input, a Calculate t=((v-u)/a) s=(((u+v)/2)*t) Display t=%.2f,t s=%.2f,s (j==9) Display INPUT u : Read & store the input, u Display INPUT a : Read & store the input, a Display INPUT s : Read & store the input, s Calculate v=sqrt((u*u)+(2*a*s)) t=((v-u)/a) Display v=%.2f,v t=%.2f,t (j==10) Display INPUT a : Read & store the input, a Display INPUT s : Read & store the input, s Display INPUT v : Read & store the input, v Calculate u=sqrt((v*v)-(2*a*s)) t=((v-u)/a) Display u=%.2f, t=%.2f,t Display Errortry again (i==2) Display You choose Linear Motion ====================== What do you want to find? 1.F=Net Force (N) 2.m=Mass (kg) 3.a=Acceleration (m/s^2) Please choose : Read & store the input, k (k==1) Display INPUT m : Read & store the input, m Display INPUT a : Read & store the input, a1 Calculate F=m*a1 Display F=%.2f,F (k==2) Display INPUT F : Read & store the input, F Display INPUT a : Read & store the input, a1 Calculate m=F/a1 Display m=%.2f,m (k==3) Display INPUT F : Read & store the input, F Display INPUT m : Read & store the input, m Calculate a1=F/m; Display a=%.2f,a1 Display Errortry again Display Use this equation : F=ma Display Use this equation : m=F/a Display Use this equation : a=F/m (i==3) Display You choose Moment of Force ====================== What do you want to find? 1.M=Moment(N.m) 2.F=Force (N) 3.d=distance (m) Please choose : Read & store the input, o (o==1) Display INPUT F : Read & store the input, F1 Display INPUT d : Read & store the input, d Calculate M=F1*d Display M=%.2f,M (o==2) Display INPUT M : Read & store the input, M Display INPUT d : Read & store the input, d Calculate F1=M/d Display F=%.2f,F1 (o==3) Display INPUT M : Read & store the input, M Display INPUT F : Read & store the input, F1 Calculate d=M/F1 Display d=%.2f,d Display Errortry again Display Use this equation : M=Fd Display Use this equation : F=M/d Display Use this equation : d=M/F (i==4) Display You choose Work and Energy ====================== What do you want to find? 1.W=Work (J) 2.PE=PotentialEnergy (J) 3.KE=Kinetic Energy (J) Please choose : Read & store the input, p (p==1) Display ==You choose to find work== What did variables you know? P=power t=time F=Force v=velocity s=second 1.P,t 2.F,s 3.F,v,t Please choose : Read & store the input, q (q==1) Display INPUT P : Read & store the input, P Display INPUT t : Read & store the input, t1 Calculate W=P*t1 Display W=%.2f,W (q==2) Display INPUT F : Read & store the input, F2 Display INPUT s : Read & store the input, s1 Calculate W=F2*s1 Display W=%.2f,W (q==3) Display INPUT F : Read & store the input, F2 Display INPUT v : Read & store the input, v1 Calculate W=F2*v1*t1 Display W=%.2f,W Display INPUT t : Read & store the input, t1 Display Errortry again (p==2) Display ==You choose to find work== What did variables you know? 1.Ep=Gravitational Potential Energy (J) 2.Eps=Elastic Potential Energy (J) Please choose : Read & store the input, n Display m=mass K=spring constant g=gravity S=amount of stretch h=height (n==1) Display INPUT m : Read & store the input, m1 Display INPUT g : Read & store the input, g Calculate Ep=m1*g*h Display Ep=%.2f,Ep Display INPUT h : Read & store the input, h Display INPUT K : Read & store the input, K Display INPUT S : Read & store the input, S Calculate Eps=0.5*K*S*S Display Eps=%.2f,Eps (n==2) Display Errortry again (p==3) Display ==You choose to find Kinetic Energy== m=mass (kg) v=velocity (m/s) Display INPUT m : Read & store the input, m2 Display INPUT v : Read & store the input, v2 Calculate KE=0.5*m2*v2*v2 Display KE=%.2f,KE Display Errortry again Display Errortry again Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Display Exit ::choose 1 or anything Back to Main Memu :: choose 2 only Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z Read & store the input, z (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu (z==1) (z==2) Nothing Back to Main Menu