Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use python for this programming task, thank you Task 2: In First create a file and save it as Week1_Task2. You will now write a
Use python for this programming task, thank you
Task 2: In First create a file and save it as Week1_Task2. You will now write a program that asks (prompts) the user to enter x and y. Once you have the inputs, use them to calculate the addition, subtraction multiplication, division, integer division and modulus of x and y. x and y should be converted (cast) to float. For example: Enter the value for x: 123 Enter the value for y: 15 123 15 138 123-15 108 12315 1845 123/15 8.2 123 //15 8 123 % 15-3 on sion First create a file and save it as Week1 Task3. Write a program that converts the temperature in Fahrenheit to the temperature in Celsius. Your program should prompt the user for the temperature and then print: The temperature is XXX degrees Celsius. Fahrenheit to Celsius: (x- 32) x x is the temperature in Celsius. For example: Enter a temperature in Fahrenheit: 150 The temperature is 65.55555555555556 degrees Celsius th 0 First create a file and save it as Week1 Task4. Write a program that when given as input from the user a number x and value n will find the nth root of x. To make this task easier you will be required to import python's math library, see Background: The n root of a number x can be determined by using the natural logarithm and exponents. Let a be the n root of x, this gives x o". Taking the logarithm of x gives, log(x)log(a") We know from our log laws that log(a") nlogla). If we divide through (1) by n we get log(x) = log(a) a=10 n Note: 10 is used as base for all my logs. If I used natural log then it should bee nStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started