Question: Question 4 (Marks: 15) Write the pseudocode for an application that will demonstrate how method overloading can be implemented to calculate the area of rectangles

Question 4 (Marks: 15) Write the pseudocode for an application that will demonstrate how method overloading can be implemented to calculate the area of rectangles and circles. Your pseudocode must show the method for calculating the area of a rectangle and the method for calculating the area of a circle. Demonstrate how each module is called from the mainline logic. The formula to calculate the area of a rectangle is: height x width The formula to calculate the area of a circle is: radius 2PI where PI=3.14 (c) The Independent Institute of Education (Pty) Ltd 2022 Page 5 of 6 20;21 2022 which oversees the operations of a school on a campus level. Each school also has several students enrolled in qualifications offered by the school. Draw a class diagram that will show how the information contained in the short scenario can be represented. Include at least one attribute in each class. For each attribute, specify a getter and setter method. Show the access specifiers. Q.5.2 Briefly explain the differences between constructors and destructors. Make use (10) of examples to substantiate your explanation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
