Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please need help in writing python program Part 1: Wind Chill Write a program named Lastnone Firstnane vindchill.py that asks the user for T, the

please need help in writing python program

image text in transcribed

image text in transcribed

Part 1: Wind Chill Write a program named Lastnone Firstnane vindchill.py that asks the user for T, the actual temperature in degrees Celsius and v, the wind velocity in kilometers per hour: It then calculates the wind chill temperature with this formula Tae 13.12+ (0,6215 T) (11.37)(0.3965 T 016 Note: Even though variable name, as that is the convention for Python programs the formula uses a capital letter T for temperature, you should use a lower case letter for your ere is an example of what the output of your program might look like. It does not have to be identical to this, but should convey the same information. Display the result temperature to three decimal places. Enter temperature in degrees Celsius: 5.2 Enter wind velocity in kilometers/hour: 10.5 The wind chill temperature in degrees Celsius is 2.792. You can check your answers using the calculator at this web site e To raise a number to a power, use theoperator. To see how it works, try this in the Python shell. These are the calculations for 4 to the third power (64), 3 to the fourth power (81), the square root of 2 (1.414..., the cube root of 1728 (12), and 5 to the negative second power (0.04) 2 * 8.5 1728 (1/3) Some of these answers will not come out exact because they cannot be represented exactly in binary, much as numbers like 1/7 cannot be represented exactly in decimal. Part 2: Monthly Loan Payment Some or these answers will not com out exact because they cannot be represented exactly in binary, much as numbers like 1/7 cannot be represented exactly in decimal Part 2: Monthly Loan Payment You will write a program named lastname firs tnome,payment.py that calculates monthly payments on a loan. Your program will ask for these items as input: the amount of the loan, the annual percentage rate, and the number of years of the loan. Calculate the monthly payment according to this formula: payment = p . (1 +r)"-1 p is the principal (the amount of the loan). . r is the monthly interest rate . n is the number of months of the loan. You might want to make separate variables for: . The monthly interest rate r, which equals the annual rate divided by 12 . The number of months n, which equals the number of years times 12 . The common subformula (1+r)" Here is what a sample run of the program might look like: Enter amount of loan: $5eee Enter annual interest rate as a percent: 7.25 Enter number of years for the loan: 16 Your monthly payment is $58.7e You can check your answers by using the (PxT function in a spreadsheet like Excel or at this web site e

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

Step: 3

blur-text-image

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

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

4. Are there any disadvantages?

Answered: 1 week ago

Question

3. What are the main benefits of using more information technology?

Answered: 1 week ago

Question

start to review and develop your employability skills

Answered: 1 week ago