Write a program for checking a circle

Assignment Help Python Programming
Reference no: EM131464

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.

 

Reference no: EM131464

Questions Cloud

Significance of the center of gravity : Define a value chain and the significance of the center of gravity.
Examine the behavior of airfoil : Write HW assignment written in Matlab airfoils have different C mc/4
Computer programming techniques : Construct a program from a design and use appropriate functions
Write a c++ program to find the intersection : Write a C++ program to find the intersection, A set is a collection of distinct entities regarded as a unit, being either individually specified or (more usually) satisfying specified conditions.
Write a program for checking a circle : Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.
Combinational logic devices for specific purposes : Interpret manufacturer's data sheet to select appropriate combinational logic devices for specific purposes
Addition and subtraction of numbers in binary : Addition and Subtraction of numbers in binary and round to the nearest decimal number with three significant decimal digits
Audit financial data : As a consequence an accounts payable clerk and financial accountant were made redundant from the business during the year.
Define variables and profit function : Define variables and profit function

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd