[solved]-Use C Programming Given Three Numbers Create Class Area Following Characteristics Must Ext Q39078908
Use C++ programming
Given three numbers, create a class Area withfollowing characteristics.
- Must extend Rectangle and Squareclass.
- Public function named getSumOfAreasthat accept two parameter of double type and return addition ofthose number.
Note: Rectangle andSquare class already created.
Input
5.5
5.5
6.5
Where,
- The first line is length of Rectangle.
- The second line is width of Rectangle.
- The third line is side of Square.
Output
30.25
42.25
72.50
Where,
- The first line of output contains area of Rectangle.
- The second line of output contains area of Square.
- The third line of output contains sum of above area.
Assume that,
- Inputs are in double within the range [ 1 to 10^20].
Expert Answer
Answer to Use C++ programming Given three numbers, create a class Area with following characteristics. Must extend Rectangle and S… . . .
OR

