Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Please answer both questions using Python thank you

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

Students also viewed these Databases questions

Question

List out some inventory management techniques.

Answered: 1 week ago