Write the pseudocode for an application that will request the user to enter the radius of a circle. The radius is the me
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write the pseudocode for an application that will request the user to enter the radius of a circle. The radius is the me
Write the pseudocode for an application that will request theuser to enter the radius of a circle. The radius is the measurementfrom the centre of the circle to the edge of the circle. The radiusshould then be passed to a method which will use the value of theradius to compute the area of a circle. The result of thecalculation should be returned to the mainline logic which shoulddisplay the area of the circle. The formula for calculating thearea of a circle is: The calculation can also be written as: A =3.14 x (r x r) r = radius A = area π = 3.14 (which is called PI)Note: Provide appropriate comments in your pseudocode