1 Use water cooler
2 Avoid single use drink container for guests
3 Bring lunches in reusable containers
4 Paper waste reduction
take paperless notes
5 Use both sides of paper while printing, coping and writing
Answer:
Check the explanation
Explanation:
#include <bits/stdc++.h>
using namespace std;
class Rectangle{
public:
int length;
int breadth;
Rectangle(int l,int b){
length = l;
breadth = b;
}
int area(){
return length*breadth;
}
int perimeter(){
return 2*(length+breadth);
}
bool equals(Rectangle* r){
// They have the exact same length and width.
if (r->length == length && r->breadth == breadth)
return true;
// They have the same area
if (r->area() == area())
return true;
// They have the same perimeter
if (r->perimeter() == perimeter())
return true;
// They have the same shape-that is, they are similar.
if (r->length/length == r->breadth/breadth)
return true;
return false;
}
};
int main(){
Rectangle *r_1 = new Rectangle(6,3);
Rectangle *r_2 = new Rectangle(3,6);
cout << r_1->equals(r_2) << endl;
return 0;
}
1. C
2. B
3. C
4. A
5. A
6. B
7. C
8. D
9. C
10. B
11. D
12. D
13. D
14. A
15. A
16. B
17. A
18. B
19. D
20. B
Some of the ones towards the start may not be right but I gave it a go :)