Question: This is a C++ program. Help me complete the program thank you. // Task: To create a class Rectangle, and calculate the area of rectangle

This is a C++ program. Help me complete the program thank you.

// Task: To create a class Rectangle, and calculate the area of rectangle

#include

using namespace std;

// Create a class Rectangle with public length and breadth

class Rectangle

{};

int main()

{

// Declare three rectangles of type Rectangle

int area = 0;

//Enter length and breadth for three rectangles

// Rectangle 1 specification

// Rectangle 2 specification

// Rectangle 3 specification

// Calculate and print the area for each rectangle

// Area of Rectangle 1

// Area of Rectangle 2

// Area of Rectangle 3

system("pause");

return 0;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!