Question: Please answer both questions thank you Problem 1 Statement: Implement a function based on the docstring The windchill index is calculated using the following formula:
Please answer both questions thank you


Problem 1 Statement: Implement a function based on the docstring The windchill index is calculated using the following formula: Windchill =13.12+0.6215T11.37V0.16+0.3965TV0.16 where, T= Temperature in degrees Celsius V= Wind velocity in kilometers per hour Write a program that asks for temperature and wind velocity data from the user and call the appropriate function (defined by you) to calculate the windchill. Print your result accordingly. As part of the solution, the docstring for your function is provided. Complete the function and test your function by executing the examples provided in the docstring . "" "This function calculates and return the windchill index for the given temperature ' t ' in degree celcius and wind velocity ' v ' in km/h using the following formula: 13.12+0.6215t11.37v0.16+0.3965tv0.16 Author: TO BE COMPLETED BY THE PROGRAMMER Example: >>>get_windchill_index (10,10) 15 >>>get_windchill_index (5,80) 3 >>>get_windchill_index (5,15) 2 Problem 2: The Fibonacci sequence starts 1, 1, 2,3,5,8,. . Each number in the sequence (after the first two) is the sum of the previous two. Write a program that computes and outputs the nth Fibonacci number, where n is a value entered by the user. Calculation of Fibonacci number must be implemented as a function. Hints: You can use recursion
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
