1 checking for a circle on a line by itself your


1. checking for a circle. On a line by itself, your program must either print "is a circle: YES" or "is a circle: NO", appropriately.

2. tallness or longness. If the ellipse is taller than it is long, your program must print "this is a tall ellipse" on its own line. If it is longer than it is tall, your program must instead print "this is a long ellipse" on its own line. If it is exactly as tall as it is long, don't print anything.

3. focal distance.  Your program must print "focal distance, f: " followed by the actual value of the focal distance.  f = √ (a2-b2), where a is the major radius and b is the minor radius.

 

4. eccentricity. The eccentricity of an ellipse is defined as: 

                         e  =   √ (a2-b2) = √1-(b/a)2= f/a

Your program will calculate it, and print "eccentricity:" followed by the correct value.

 

Request for Solution File

Ask an Expert for Answer!!
Python Programming: 1 checking for a circle on a line by itself your
Reference No:- TGS0443044

Expected delivery within 24 Hours