Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A person is standing on a cliff. They throw a ball in the +x direction with an initial velocity (m/s). It takes a certain amount

A person is standing on a cliff. They throw a ball in the +x direction with an initial velocity (m/s). It takes a certain amount of time to hit the ground. The user will enter the time and velocity when prompted. Calculate the height that the ball is thrown from (The height of the cliff). Calculate the distance from the base of the cliff to the point where it landed.

Some formulas you might need: In the vertical direction h= 1/2 g t^2

In the horizontal direction, since the velocity is constant 1 x=vt

Where h = height (m) g = gravity (a constant 9.8 m/s^2) t = time (sec) x = distance traveled (m) v = velocity (m/s)

Write a program that gives the following output. It ends with a newline. Output #1

Enter the initial velocity of the ball (in m/sec): 85.5 Enter the time it takes to hit the ground (in sec): 5.3 Problem Solution for Projectile Motion Given: Initial velocity: 85.5 m/sec Time to Ground: 5.3 seconds Answers The ball traveled 453.15 meters from the base of the cliff The height of the cliff is 137.641 meters. 

Output #2

Enter the initial velocity of the ball (in m/sec): 3 Enter the time it takes to hit the ground (in sec): 20 Problem Solution for Projectile Motion Given: Initial velocity: 3 m/sec Time to Ground: 20 seconds Answers The ball traveled 60 meters from the base of the cliff The height of the cliff is 1960 meters.

We can only use simple coding like cout and endl

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions