Vertical Horizontal Ax = Vort Vz = Vox 1 Ay = voyt -gt? Vy = Voy - gt Max Height
Vertical Horizontal Ax = Vort Vz = Vox 1 Ay = voyt -gt? Vy = Voy - gt Max Height
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Create java , construction object and classes ,Decisions,loop.

Transcribed Image Text:Horizontal
Ax = Voxt
Vz = Vox
Vertical
1
Ay = voyt – 5gt?
%3D
Vy = Voy - gt
Max Height
Vo
Sample run 2:
Enter angle Theta between 0 and 90 degrees: 55.6
Enter positive velocity value : 21.4
Result :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Time (s)
x (m)
vx (m/s)
у (m)
vy (m/s)
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
0.000
0.00
12.09
0.00
17.66
0.500
6.05
12.09
7.60
12.75
1.000
12.09
12.09
12.75
7.85
1.500
18.14
12.09
15.45
2.94
2.000
24.18
12.09
15.69
-1.96
2.500
30.23
12.09
13.49
-6.87
3.000
36.27
12.09
8.83
-11.77
3.500
42.32
12.09
1.71
-16.68
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Max height: 15.89 (m) at time: 1.800 (s)
BUILD SUCCESSFUL (total time: 8 seconds)
Sample run 3:
Enter angle Theta between 0 and 90 degrees: -52
Enter angle Theta between 0 and 90 degrees: -10
Enter angle Theta between 0 and 90 degrees: 90
Enter positive velocity value : -40
Enter positive velocity value : 20
Result :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
vx (m/s)
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Time (s)
x (m)
у (m)
vy (m/s)
0.000
0.00
0.00
0.00
20.00
0.00
0.00
0.500
0.00
8.77
15.09
1.000
0.00
15.10
10.19
1.500
0.00
0.00
18.96
5.28
2.000
0.00
0.00
20.38
0.38
2.500
0.00
0.00
19.34
-4.52
3.000
0.00
0.00
15.86
-9.43
3.500
0.00
0.00
9.91
-14.33
4.000
0.00
0.00
1.52
-19.24
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Max height: 20.39 (m) at time: 2.040 (s)
BUILD SUCCESSFUL (total time: 27 seconds)

Transcribed Image Text:Problem:
Consider a ball is kicked at an angle 0 (in degrees) from the horizontal with an initial
velocity vo m/s. Write a java program that ask the user for values of 0 and vo m/s (meter
per second) and accordingly it simulates the ball movements in very short time intervals
At millisecond (ms). You will take the time interval for measurements at a standard
interval of At = 10 ms and determine the football position Ax and Ay (i.e. x and y
coordinate). For the next iteration the new Ax and Ay will be used to update the distance.
Run the simulation until the football falls back to earth. Your program computes and
displays the position (x and y coordinates) and the velocity (v and v,) of the football to
record its dynamic-motion until it hits the ground. Calculate x and y every 10 ms but print
the values every 500 ms with the format as shown in sample runs figures below.
Create a NetBeans project named HW1_Yourld. Submit “HW1_Yourld.java" source
file to the Moodle.
Sample run 1:
Enter angle Theta between 0 and 90 degrees: 37
Enter positive velocity value : 40
Result :
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Time (s)
х (m)
vx (m/s)
у (m)
vy (m/s)
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
0.000
0.00
31.95
0.00
24.07
0.500
15.97
31.95
10.81
19.17
1.000
31.95
31.95
19.17
14.26
1.500
47.92
31.95
25.07
9.36
2.000
63.89
31.95
28.53
4.45
2.500
79.86
31.95
29.53
-0.45
3.000
95.84
31.95
28.07
-5.36
3.500
111.81
31.95
24.17
-10.26
4.000
127.78
31.95
17.81
-15.17
4.500
143.75
31.95
9.00
-20.07
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Max height: 29.54 (m) at time: 2.450 (s)
BUILD SUCCESSFUL (total time: 3 seconds)
components in the x and y directions. The initial velocity and horizontal displacement in
the x-direction is given by vox = vo cos0 and Ax = vox.At. Whereas velocity in the y-
direction and the vertical displacement is given by voy = vo sin0 and Ay =
Voy.At – 0.5g(At)². Where gravity g = 9.81 m/s² is the gravity force of the Earth. For
the next iteration the new Ax and Ay will be used to update the distance.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education