Computer Science, asked by mahidharymcl2019, 7 months ago

write a C program to find A building has f floors with a floor height of h meters each. A ball is dropped
from the top of the building. Find the time taken by the ball to reach each floor.
(Use the formula s = ut+(1/2)at^2 where u and a are the initial velocity in m/sec (=
0) and acceleration in m/sec^2 (= 9.8 m/s^2))

Answers

Answered by atiffarhan24
7

Answer:

hey,your answer is in the photo

hope this helps you,please mark me as brainliest

Attachments:
Answered by pragyakirti12345
1

Answer: Required C program is given below.

Explanation:

#include<stdio.h>

#include<conio.h>

#include<math.h>

void main()

{

int u, h, f, distance ;

float a = 9.8f ;  // acceleration is constant value

double t, x ;

printf("Enter the number of floors in the building A : " ) ;

scanf(" %d ", &f ) ;

printf("Enter the height of each floor in the building A : " ) ;

scanf(" %d ", &h ) ;

distance = f * h ;  // number of floor * height of each floor gives distance

u = 0 ; // since the ball is dropped, and initially it was at rest

x = (2 * distance)/ a ;

t = sqrt(x);

printf(" Time taken : %lf ", t);

getch() ;

}

______________________________________________________

Related Links :

Write a C program accepts an integer and prints the integer after removing 0's at last.​

https://brainly.in/question/41217031

Write a C program to read string "Hello Gujarat" from the user and display it in the following different format

(a) Hello

(b) Gujarat

(c) Hello Gujarat

(d) Hello G​

https://brainly.in/question/37994870

#SPJ2

Similar questions