Create a program that determines how quickly an object is travelling when it hits the ground (we'll label this "final velocity" or v. The user will enter the height from which the object is dropped a distance (d) in meters (m). Your output should be formatted such that you always display ONE digit after the decimal place for the final velocity (e.g.: 20.2, 15.5, 10.0, etc.) Because the object is dropped from some height, you may assume its initial speed (v) is O meters-per- second (m/s). We are on Earth using metric values for our calculations; therefore assume acceleration (designated a in the following formula) due to gravity is 9.8m/s? You can use the following general formula to find the final speed v Vf = Vv? + 2ad Again the initial speed, v, is zero, since we are dropping the object. Acceleration, a, has been given to you since we are on Earth. The distance, d, is input by the user. • Don't forget: Include a flowchart that describes your program's operation (this will be counted as part of your grade as 'documentation' in the grading rubric) Sample Output: = RESTART: /Users/keithbagley/Dropbox/NORTHEASTERN UNI ork/HW1/gravity.py Final velocity calculator What is the height/distance (in meters): 100 The object will hit the ground at a speed of 44.3 m/s. AMAZING points: These final two points may be awarded if you've completed the rest of the assignment perfectly and blown us away with. Using constants where appropriate Using round or format functions only for printing out, and do not save any values that have been rounded off, floored, etc.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question

Please explain the steps of the coding attached.

Create a program that determines how quickly an object is travelling when it hits the ground (we'll label this
"final velocity" or v The user will enter the height from which the object is dropped a distance (d) in meters
(m). Your output should be formatted such that you always display ONE digit after the decimal place for the
final velocity (e.g.: 20.2, 15.5, 10.0, etc.)
Because the object is dropped from some height, you may assume its initial speed (v) is O meters-per-
second (m/s). We are on Earth using metric values for our calculations; therefore assume acceleration
(designated a in the following formula) due to gravity is 9.8m/s?
You can use the following general formula to find the final speed v;
Vf = Vvý + 2ad
Again the initial speed, v; is zero, since we are dropping the object. Acceleration, a, has been given to you
since we are on Earth. The distance, d, is input by the user.
• Don't forget: Include a flowchart that describes your program's operation (this will be counted as part
of your grade as 'documentation' in the grading rubric)
Sample Output:
= RESTART: /Users/keithbagley/Dropbox/NORTHEASTERN UNI
ork/HW1/gravity.py
Final velocity calculator
What is the height/distance (in meters): 100
The object will hit the ground at a speed of 44.3 m/s.
AMAZING points: These final two points may be awarded if you've completed the rest of the assignment perfectly
and blown us away with.
• Using constants where appropriate
Using round or format functions only for printing out, and do not save any values that have been
rounded off, floored, etc.
Transcribed Image Text:Create a program that determines how quickly an object is travelling when it hits the ground (we'll label this "final velocity" or v The user will enter the height from which the object is dropped a distance (d) in meters (m). Your output should be formatted such that you always display ONE digit after the decimal place for the final velocity (e.g.: 20.2, 15.5, 10.0, etc.) Because the object is dropped from some height, you may assume its initial speed (v) is O meters-per- second (m/s). We are on Earth using metric values for our calculations; therefore assume acceleration (designated a in the following formula) due to gravity is 9.8m/s? You can use the following general formula to find the final speed v; Vf = Vvý + 2ad Again the initial speed, v; is zero, since we are dropping the object. Acceleration, a, has been given to you since we are on Earth. The distance, d, is input by the user. • Don't forget: Include a flowchart that describes your program's operation (this will be counted as part of your grade as 'documentation' in the grading rubric) Sample Output: = RESTART: /Users/keithbagley/Dropbox/NORTHEASTERN UNI ork/HW1/gravity.py Final velocity calculator What is the height/distance (in meters): 100 The object will hit the ground at a speed of 44.3 m/s. AMAZING points: These final two points may be awarded if you've completed the rest of the assignment perfectly and blown us away with. • Using constants where appropriate Using round or format functions only for printing out, and do not save any values that have been rounded off, floored, etc.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Transmission media
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,