Page 1 of 1

20; 21, 22 Question 4 (Marks: 15) Write the pseudocode for an application that will request the user to enter the radius

Posted: Fri Jul 08, 2022 6:38 am
by answerhappygod
20 21 22 Question 4 Marks 15 Write The Pseudocode For An Application That Will Request The User To Enter The Radius 1
20 21 22 Question 4 Marks 15 Write The Pseudocode For An Application That Will Request The User To Enter The Radius 1 (138.41 KiB) Viewed 50 times
20; 21, 22 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: O radius -area A = π x ² The calculation can also be written as: A = 3.14 x (r xr) r = radius A = area π = 3.14 (which is called PI) 2022 Note: Provide appropriate comments in your pseudocode.