import math Function I: Complete the following function called "cal_secs_ball_falling1". A ball is dropped from a tower of height h (in meters) with initial velocity zero. Function "cal_secs_ball_falling1" takes the height of the tower as input and RETURNS the time (in seconds) the ball takes until it hits the ground (ignoring air resistance). Refer to hw3.docx for the kinematic formula. Requirement(s); 1) The return value is an integer that only keeps the integer part of the computed result. def cal secs_ball_falling1(h): pass #Replace pass with your code Function II: Modify the following function called "cal_secs_ball_falling2": A ball is AGAIN dropped from a tower of height h (in meters) with initial velocity zero. Function "cal_secs_ball_falling2" takes the height of the tower as input and CALCULATES AND PRINTS the time (in seconds) the ball takes until it hits the ground, ignoring air resistance. Requirement(s); 1) The displayed time is a floating-point number (i.e., no rounding needed). 2) Function "cal_secs_ball_falling2" is a VOID function. def cal_secs_ball_falling2 (h): te #t is the number of secs the ball takes until hitting the ground #Insert your code of calculating t below. #Keep the following print statement as the last statement of this function. print (f"It takes (t) seconds for the ball to hit the ground.\n") Function III: Complete the following function called "cal_altitude" that calculates and returns the needed altitude h (in kilometers) above the earth's surface that the satellite must have so that it orbits the planet once every t minutes. Refer to hw3.docx for the formula used to calculate the altitude. Hint: The parameter t is in minutes and T in the given formula is in seconds! def cal_altitude(t): pass #Replace pass with your code Function IV: Complete the following function called "darw_grid" that draws a grid like the one shown in "hw3.pdf", which is only composed of '+','','I' and (space). Hint: Consider using string addition (concatenation) and multiplication (repetition). def draw_grid(): pass #Replace pass with your code #Function Calls: #Do NOT modify the following code!!! print (f'It takes (cal_secs_ball_falling1(100)) seconds for the ball to hit the ground.\n') cal secs_ball_falling2(100) print(cal secs_ball falling2 (100), \n') print(cal_altitude (90), '\n') 130') print(cal_altitude (45), draw orid() output It takes 4 seconds for the ball to hit the ground. It takes 4.515236409857309 seconds for the ball to hit the ground. It takes 4.515236409857309 seconds for the ball to hit the ground. None 279.32162537285967 -2181.5598978108233
import math Function I: Complete the following function called "cal_secs_ball_falling1". A ball is dropped from a tower of height h (in meters) with initial velocity zero. Function "cal_secs_ball_falling1" takes the height of the tower as input and RETURNS the time (in seconds) the ball takes until it hits the ground (ignoring air resistance). Refer to hw3.docx for the kinematic formula. Requirement(s); 1) The return value is an integer that only keeps the integer part of the computed result. def cal secs_ball_falling1(h): pass #Replace pass with your code Function II: Modify the following function called "cal_secs_ball_falling2": A ball is AGAIN dropped from a tower of height h (in meters) with initial velocity zero. Function "cal_secs_ball_falling2" takes the height of the tower as input and CALCULATES AND PRINTS the time (in seconds) the ball takes until it hits the ground, ignoring air resistance. Requirement(s); 1) The displayed time is a floating-point number (i.e., no rounding needed). 2) Function "cal_secs_ball_falling2" is a VOID function. def cal_secs_ball_falling2 (h): te #t is the number of secs the ball takes until hitting the ground #Insert your code of calculating t below. #Keep the following print statement as the last statement of this function. print (f"It takes (t) seconds for the ball to hit the ground.\n") Function III: Complete the following function called "cal_altitude" that calculates and returns the needed altitude h (in kilometers) above the earth's surface that the satellite must have so that it orbits the planet once every t minutes. Refer to hw3.docx for the formula used to calculate the altitude. Hint: The parameter t is in minutes and T in the given formula is in seconds! def cal_altitude(t): pass #Replace pass with your code Function IV: Complete the following function called "darw_grid" that draws a grid like the one shown in "hw3.pdf", which is only composed of '+','','I' and (space). Hint: Consider using string addition (concatenation) and multiplication (repetition). def draw_grid(): pass #Replace pass with your code #Function Calls: #Do NOT modify the following code!!! print (f'It takes (cal_secs_ball_falling1(100)) seconds for the ball to hit the ground.\n') cal secs_ball_falling2(100) print(cal secs_ball falling2 (100), \n') print(cal_altitude (90), '\n') 130') print(cal_altitude (45), draw orid() output It takes 4 seconds for the ball to hit the ground. It takes 4.515236409857309 seconds for the ball to hit the ground. It takes 4.515236409857309 seconds for the ball to hit the ground. None 279.32162537285967 -2181.5598978108233
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Alert dont submit
Please help fill in the code for the functions.The correct output is shown.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 6 steps with 15 images
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education