Please give answer in PSEUDOCODE
Posted: Fri Jul 08, 2022 6:36 am
Please give answer in PSEUDOCODE
Question 4 (Marks: 15) Write the pseudocode for an application that will request the user to enter the radius of a circle. The radius is the measurement from the centre of the circle to the edge of the circle. The radius should then be passed to a method which will use the value of the radius to compute the area of a circle. The result of the calculation should be returned to the mainline logic which should display the area of the circle. The formula for calculating the area of a circle is: От radius -area A = π xr² The calculation can also be written as: A = 3.14 x (r xr) r = radius A = area 3.14 (which is called Pl)
Question 4 (Marks: 15) Write the pseudocode for an application that will request the user to enter the radius of a circle. The radius is the measurement from the centre of the circle to the edge of the circle. The radius should then be passed to a method which will use the value of the radius to compute the area of a circle. The result of the calculation should be returned to the mainline logic which should display the area of the circle. The formula for calculating the area of a circle is: От radius -area A = π xr² The calculation can also be written as: A = 3.14 x (r xr) r = radius A = area 3.14 (which is called Pl)