In: Electrical Engineering
Design an algorithm for each of the exercises and type it into a word document. Upload the document to PE1 assignment folder.
Design an algorithm to find the real roots of a quadratic equation of the form ax2+bx+c=0, where a, b, c are all real numbers and a is nonzero
Algorithm to find the real roots of a quadratic equation of the form ax^2+bx+c=0,where a,b,c are all real numbers and a is nonzero
ALGORITHM:
else
Calculate x1=(-b+sqrt(d))/2a
x2=(-b-sqrt(d))/2a