Question: using Python Help Me with these problems 1. Write a program that begins by reading a temperature from the user in degrees Celsius. Then your

 using Python Help Me with these problems 1. Write a program

using Python

Help Me with these problems

1. Write a program that begins by reading a temperature from the user in degrees Celsius. Then your program should display the equivalent temperature in degrees Fahrenheit and degrees Kelvin. The calculations needed to convert between different units of temperature can be found on the Internet. 2. A univariate quadratic function has the form f(x) = ax2 + bx + c, where a, b and c are constants, and a is non- zero. Its roots can be identified by finding the values of x that satisfy the quadratic equation ax2 + bx + c = 0. These values can be computed using the quadratic formula, shown below. A quadratic function may have 0, 1 or 2 real roots. root = -b + b2 - 4ac 2a The portion of the expression under the square root sign is called the discriminant. If the discriminant is negative then the quadratic equation does not have any real roots. If the discriminant is 0, then the equation has one real root. Otherwise the equation has two real roots, and the expression must be evaluated twice, once using a plus sign, and once using a minus sign, when computing the numerator. Write a program that computes the real roots of a quadratic function. Your program should begin by prompting the user for the values of a, b and c. Then it should display a message indicating the number of real roots, along with the values of the real roots (if any). 3. Write a program to calculate the factorial of a positive integer input by the user. Recall that the factorial function is given by x! = x(x - 1)(x - 2)...(2)(1) so that 1! = 1, 2! = 2, 3! = 6, 4! = 24, 5! = 120, ... (a) Write the factorial function using a Python while loop. (b) Write the factorial function using a Python for loop. Check your programs to make sure they work for 1,2,3,5, and beyond, but especially for the first 5 integers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!