Question: this is a python 3 program please answer these two python questions with comments on how the code works iallastrated in the figure below and
iallastrated in the figure below and the wolume can be calalcated uaing the length of the side of the uprer squarr, a, the length of the side of the lower square. A, and the beivht, b Wrize a progeram to request the user enter the float values of thee parameters a and b,the length of the two sides, as well as the volume Y : Print the height of the frustrum, h, with a precision of two decimal places. An example run is given below: (c) (Algebra) Write a program to find only the root value of x in any quadratic equation ax2+bx+c. The program should request the three arguments from the user: - a as the coefficient of x2 - b as the cocfficient of x - c as the constant term The program should only accept arguments that return real valued roots (i.e. no complex roots). The roots are given by the following equation: x=2abb24ac The root(s) should be printed out with a precision of two decimal places. An example run is given below: Page 2 of 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
