How to calculate the area and perimeter of a circle


Asked by admin @ in Physics viewed by 288 People


Write an algorithm and draw the flowchart of finding the area and perimeter of a circle. The

radius (float) need to be entered by the user and if the user enters negative radius or zero radius,
the algorithm will ask the user to be entered again. (The algorithm will ask the user to enter the
radius until it is entered as positive.) At the end, the algorithm will find and print area and
perimeter of the circle as output.

Answered by admin @



Answer:

The algorithm

Step 1: Start

Step 2: Input Radius

Step 3: While Radius < = 0

                 Input Radius

Step 4: Pi = 3.14

Step 5: Perimeter = 2 * Pi * Radius

Step 6: Area = Pi * r^2

Step 7: Print Area, Perimeter

Step 8: Stop

Explanation:

This indicates the start of the algorithm

Step 1: Start

This inputs the radius

Step 2: Input Radius

The following loop is repeated until user input for radius is greater than 0

Step 3: While Radius < = 0

                 Input Radius

This initializes Pi to 3.14

Step 4: Pi = 3.14

This calculates the Perimeter or Circumference

Step 5: Perimeter = 2 * Pi * Radius

This calculates the Area

Step 6: Area = Pi * r^2

This prints the calculated Perimeter ad Area

Step 7: Print Area, Perimeter

This indicates the end of the algorithm

Step 8: Stop

I've added the flowchart as an attachment


Similar Questions

Which of the following could be used to calculate the area of the sector in the circle shown above?

Asked by maham237 @ in Mathematics viewed by 344 persons

Circle A is shown with a central angle marked 40 degrees and the radius marked 15 inches.

Write a program to calculate area of circle in c++

Asked by admin @ in Computers and Technology viewed by 316 persons

I want to write a C++ program to read the diameter of a circle. The program should find and display the area and circumference of the circle. Define a constant …

How to find area of a circle when given circumference

Asked by admin @ in Mathematics viewed by 308 persons

Explain each step in the process of finding the area of a circle given the circumference

How are the circumference and area of a circle related

Asked by admin @ in Mathematics viewed by 268 persons

How are arc length and sector area related to circumference and area of a circle

How to calculate the surface area of a hexagonal prism

Asked by admin @ in Mathematics viewed by 381 persons

The figure shows a regular hexagonal prism. The figure shows a regular hexagonal prism. The side of the hexagonal face is labeled as 4 centimeters, the length of the rectangular …

How to find the lateral area of a prism calculator

Asked by admin @ in Mathematics viewed by 404 persons

1. use formulas to find the lateral area and surface area of the given prism. Round your answer to the nearest whole number. Use the large 12 * 7 m …

Write the equation of the circle in standard form calculator

Asked by admin @ in Mathematics viewed by 331 persons

Determine the equation of a circle with a center at (–4, 0) that passes through the point (–2, 1) by following the steps below. Use the distance formula to determine …

How to find area of a sector of a circle

Asked by admin @ in Mathematics viewed by 371 persons

The area A of a sector of a circle is given by A=πr²s/360, where r is the radius of the circle and s is the angle measure(in degrees) of the …

How to find the surface area of a prism calculator

Asked by admin @ in Mathematics viewed by 471 persons

Surface area of the semicircular right prism is _____inches squared

How to find the area of a circle without radius

Asked by admin @ in Mathematics viewed by 328 persons

How do i find the circumference of a circle without the radius given?

How to find the circumference of a circle using area

Asked by admin @ in Mathematics viewed by 385 persons

Find the area and the circumference of a circle with diameter 8 cm. Use the value 3.14 for π , and do not round your answers. Be sure to include …

How to find the area of a circle using diameter

Asked by admin @ in Mathematics viewed by 371 persons

1. What is the area of a circle with a diameter of 12.6 in.? Use 3.14 for pi and round your final answer to the nearest hundredth. 2. Which explanation …

How to work out the area of half a circle

Asked by admin @ in Mathematics viewed by 288 persons

Work out the area of this semi circle Take pie to be 3.142 and give your answer to 2 decimal places

How do u work out the area of a circle

Asked by admin @ in Mathematics viewed by 322 persons

Work out the area of a circle with radius 6mm. give your answer in terms of pi and state its units

How to find diameter circumference and area of a circle

Asked by admin @ in Mathematics viewed by 365 persons

Find the area and the circumference of a circle with diameter 8 cm. Use the value 3.14 for π , and do not round your answers. Be sure to include …

Most viewed questions in Physics


Jeevandeep health and physical education std 10 answers pdf

Asked by admin @ in Physics viewed by 11074 persons


Hc verma physics class 9 solutions of describing motion

Asked by admin @ in Physics viewed by 2673 persons


How to leave nightmare land answer key

Asked by maham237 @ in Physics viewed by 1599 persons



Base area and stability of some objects with different shapes

Asked by admin @ in Physics viewed by 1533 persons


Which of the following statements about safe lifting are correct

Asked by admin @ in Physics viewed by 1518 persons


Porous water-absorbing mass of fibers

Asked by wiki @ in Physics viewed by 1497 persons



Absorption of water by filter paper is due to

Asked by admin @ in Physics viewed by 1440 persons


A composite wire of uniform diameter 3mm

Asked by admin @ in Physics viewed by 1407 persons


At a distance l 400m from the traffic light

Asked by admin @ in Physics viewed by 1336 persons



A rocket of mass m is launched straight up with thrust f⃗ thrust.

Asked by maham237 @ in Physics viewed by 1317 persons


Mind map for light reflection and refraction class 10

Asked by admin @ in Physics viewed by 1149 persons



A thief runs at a speed of 10m s

Asked by admin @ in Physics viewed by 1097 persons


A 5.8 x 10 4 watt elevator motor can lift

Asked by maham237 @ in Physics viewed by 1082 persons