3. Calculate, and display on the screen, the velocity of the object, in meters/s
ID: 3783228 • Letter: 3
Question
3. Calculate, and display on the screen, the velocity of the object, in meters/second after falling the distance d
An object is allowed to free iall under constant gravity. The object is at rest initially, and allowed to lall a given distance. We are interested in seeing the time it takes to fall a given distance, and the velocity of the object aluer falling the specified distance. We are also interested in seeing how these numbers change under different gravitational fields. The equations that we will be using to calculate these values are where t is the amount of time it takes to fall a distance d under constant acceleration g. where V is the velocity of the object afuer time l. Note: These equations assume that the oljecl is initially al rest and the objecl is Jalling uilhout being alrected by any other force Write a C program that performs the following tasks 1. Prompt the user for the following information: The distance, in meters, that the object will fall The amount of constant acceleration applied to the object, in meinr 2. Calculate, and display on the screen, the total time, in seconds, required to fall a distance dExplanation / Answer
C Program:
#include<stdio.h>
#include<math.h>
int main()
{
float distance,acceleration,velocity,time;
printf("Enter distance(in mts),constant acceleration(in mts/sec^2) :");
scanf("%f %f",&distance,&acceleration);
time=sqrt((2*distance)/acceleration);
velocity=acceleration*time;
printf("Velocity is %f ",velocity);
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.