gram 1: Drawing and calculating area of a rectangle using the PP approach As for this question, you will be writing a program (using the PP approach) that consists of two functions which are drawRectangle and clacRectangleArea. Complete Program1.cpp to accomplish this task where the expected output of this program is given in Figure 1. *figure 1 Program 2: Rearranging the code using the structured data type Rearrange the program to achieve the same result, but this time you will be using structured data type. Program 3: Rearranging the code using the OOP approach As for this question, you will be writing the same program, but this time you will be using the OOP approach. Reflections Based on the programs you wrote above, identify the differences between OOP and PP. Also, describe how OOP relates to PP.
As for this question, you will be writing a program (using the PP approach) that consists of two functions which are
drawRectangle and clacRectangleArea. Complete Program1.cpp to accomplish this task where the expected output of
this program is given in Figure 1.
*figure 1
Program 2: Rearranging the code using the structured data type
Rearrange the program to achieve the same result, but this time you will be using structured data type.
Program 3: Rearranging the code using the OOP approach
As for this question, you will be writing the same program, but this time you will be using the OOP
approach.
Reflections
Based on the programs you wrote above, identify the differences between OOP and PP. Also, describe
how OOP relates to PP.
Step by step
Solved in 3 steps with 3 images