Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In algebra, a quadratic or 'square' equation is any equation that can be written as , where x represents an unknown value while a,
In algebra, a quadratic or 'square' equation is any equation that can be written as , where x represents an unknown value while a, b, and c represent the known coefficients of the equation where a # 0. The solution of the quadratic equation is computed by the Bhaskara's formula (as follows) for a given a, b, and c coeficients. 1) a = 3, b = -2, c = -1 => x1 = 1 2) a = 2, b = 12, c = -4 => x1 = 1 In [] # Write your code here ax +bx+c=0, and x2 = -1/3 and x2 = -7 x= -6 Write a Python program that reads the input a, b, and c from the user; calculates the unknown values (x), and display both. Use the following results to validate the correctness of your program: V 2a - 4ac Write a Python program that reads the radius (r) of a circle from the user and display the diameter, circumference, and area. For the computation, use the value 3.14159 for and the following formulas diameter = 2r, circumference = 2r and area = Tr2. Present the output in the following format The diameter of is = value The circumference is = value The area is = value In [ ] # Write your code here Some investment advisors say that it's reasonable to expect a 7% return over the long term in the stock market. Assuming that you begin with $1000 and leave your money invested, calculate and display how much money you'll have after 10, 20 and 30 years. Use the following formula for determining these amounts: a = p(1+r)^n where p is the original amount invested (i.e., the principal of $1000), r is the annual rate of return (7%), n is the number of years (10, 20 or 30) and a is the amount on deposit at the end of the nth year. In [ ] # Write your code here
Step by Step Solution
★★★★★
3.37 Rating (156 Votes )
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