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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started