answersLogoWhite

0


Best Answer

Center is at (Xc, Yc ). Radius = R.

=======================================

Print "Input the coordinates of point 'P', separated by a comma."

Input A, B

D = (Xc - A)2 + (Yc - B)2

If D < R2 then print "'P' is inside the circle."

If D = R2 then print "'P' is on the circle."

If D > R2 then print "'P' is outside the circle."

by arup nandy

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Given the coordinates xy of a center of a circle and its radius write a program which will determine whether a point lies inside the circleon the circle or outside the circle conditional statements?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Algebra
Related questions

Given the coordinates xy of a center of a circle and it's radiuswrite a program which will determine whether a point lies inside the circleon the circle or outside the circle conditional statements?

Center is at (Xc, Yc ). Radius = R. ======================================= Print "Input the coordinates of point 'P', separated by a comma." Input A, B D = (Xc - A)2 + (Yc - B)2 If D &lt; R2 then print "'P' is inside the circle." If D = R2 then print "'P' is on the circle." If D &gt; R2 then print "'P' is outside the circle."


Who were the key figures in the development of geometry?

ArchimedesArchimedes is remembered as the greatest mathematician of the ancient era. He contributed significantly in geometry regarding the areas of plane figures and the areas as well as volumes of curved surfaces. His works expected integral calculus almost 2000 years before it was invented by Sir Isaac Newton and Gottfried Wilhelm von Leibniz. He also proved that the volume of a sphere is equal to two-thirds the volume of a circumscribed cylinder. He regarded this as his most vital accomplishment. So, he desired that a cylinder circumscribing a sphere ought to be inscribed on his tomb. He found an approximate value of pi by circumscribing and inscribing a circle with regular polygons of 96 sides. His works have original ideas, impressive demonstrations and excellent computational techniques. Some of these which have survived are:on the sphere and cylindermeasurement of a circleon conoids and spheroidson spiralson plane equilibriumsthe sand reckonerquadrature of the parabolaon floating bodiesstomachionEuclidEuclid is the most famous mathematician of all time. "Euclid's Elements" is divided into 13 books.the initial six are related to plane geometryseven, eight and nine are pertaining to number theorynumber ten is regarding Eudoxus's theory of irrational numberseleven to thirteen comprise solid geometrythe last part throws light on the properties of five regular polyhedrons and an evidence that there can be maximum five of theseThese Elements have an impressive clarity regarding the selection and order of the theorems and problems. There are minimum assumptions, less extraneous material and an excellent logic in the propositions. The Elements was first published in 1482. The other works of Euclid which survive are:opticsphaenomenaon divisions of figuresdataThe works of Euclid that have not survived are:elements of musicbook of fallaciesconicsporismssurface lociPythagorasHe was a Greek mathematician. His belief was that all relations could be expressed as number relations i.e. all things are numbers. He deduced this conclusion due to observations in mathematics, music and astronomy. The Pythagorean theorem is thought to be first proved by the Pythagoreans. However, it is thought that this was known in Babylonia, where Pythagoras traveled in his young days. The Pythagoreans also observed that vibrating strings created harmonious tones if the ratios of the length of the strings are whole numbers. These ratios could be extended to other devices also. The important discovery was that the diagonal of a square was not an integral multiple of its side. This led to the proof of existence of irrational numbers.Blaise PascalThe French mathematician had been involved in imaginative and subtle work in geometry and other branches of mathematics. In 1645, Pascal invented the first calculating machine and sold it. His work in hydrostatics led to the invention of the syringe and hydraulic press. In 1647, he published an essay on conic sections using the methods of Gerard Desargues and deserted the field of mathematics. However, later he developed an interest in probability due to his involvement in gambling.Aryabhatta"Aryabhatiya" is the name of Aryabhatta's work. There are an introductory 13 verses followed by 108 verses, all of them divided into 4 chapters. Aryabhatta found out the approximate value of pi and writes about it in the second part of his works (Ganitapada 10). It is possible that he found out that pi is irrational. In Ganitapada 6, he mentions the formula to calculate the value of a triangle. He developed the "Kuttaka" method to solve first order Diophantine equations. This is termed as the "Aryabhatta algorithm". The number place-value system was obviously present in his work. Later, this system was noticed in the 3rd century Bakhshali manuscript. Georges Ifrah, the French mathematician, states that the number "zero" was implicit in this system.Some other famous mathematicians are Stefan Banach, Georg Cantor, Joseph Fourier, John von Neumann, and Brook Taylor.