Program:
height = float(input("Enter a height in feet: "))
pos = height
print('Pos(',0,')=',pos)
i = 1
while(pos>0):
pos = (-16*i*i) + height
if(pos>0):
print('Pos(',i,')=',pos)
i= i + 1
print('The ball reaches the ground at',i,'seconds')
Output:
Screenshot of program ( for indentation)
Python Please 3. Specification -Write a program that accepts as input a height in feet (or...
Write a visual basic program te a program to provide information on the height of a ball thrown straight up into the air. Th 3. Wri e program should request as input the initial height, h feet, and the initial velocity, teet per second. The height of the ball (in feet) after t seconds is given by the formula tl6c feet. The five options to be provided by buttons are as follows: (a) Determine the maximum height of the ball....
1. If a ball is thrown vertically upward with a certain velocity, its height (in feet) after t seconds is s(t) = 28t - 4tº. Answer the following questions with correct units. (a) Find the velocity and acceleration of the ball after 2 sec? (b) What is the maximum height reached by the ball? (c) Determine the velocity of the ball when it hits the ground. 4 6 6 6 6 2. Find the derivatives of the following functions. You...
Please use Python 3, thank you~ Write a program that: Defines a function called find_item_in_grid, as described below. Calls the function find_item_in_grid and prints the result. The find_item_in_grid function should have one parameter, which it should assume is a list of lists (a 2D list). The function should ask the user for a row number and a column number. It should return (not print) the item in the 2D list at the row and column specified by the user. The...
read instructions carefully please matlab only Write a MATLAB function for a BMI calculator that receives the inputs for body weight (lbs)and height (ft) from the user's program, calculates the BMI using the equation below, displays the BMI category, and outputs the BMI value tothe user's program W (kg) h2 (m2) BMI Display Normal if 18.5 s BMI 25 Display Overweight if 25 s BMI <30 Display Obese if BMI 2 30 Else display underweight So you will create two...
Please can someone help me to finish this program? It is a C programming not a C++, when programming the program in linux I keep getting expected expression before || token, also please check if everything else is fine, maybe there is something else worng in my program and may ask me later to fix it, I am concern about the sin and cosine. The program is supposed to do all this: 1.Display a welcome message. 2.Prompt for the height...
Write a MATLAB Graphical User Interface (GUI) to simulate and plot the projectile motion – the motion of an object projected into the air at an angle. The object flies in the air until the projectile returns to the horizontal axis (x-axis), where y=0. This MATLAB program should allow the user to try to hit a 2-m diameter target on the x-axis (y=0) by varying conditions, including the lunch direction, the speed of the lunch, the projectile’s size, and the...