Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write using c++ Rectangle is a shape, a customer wants you to make a program which shows length and width and calculates perimeter and Area
write using c++
Rectangle is a shape, a customer wants you to make a program which shows length and width and calculates perimeter and Area of Rectangle. Note: Each Task should be separately identifiable Area- Length* Width Perimeter = 2* (Length + Width) i) Task 1: Write a class named Rectangle containing data members and member functions as required by the customer. The class must have a default constructor, overload constructor, getters and setters, with functions to calculate area and perimeter ii) Task 2: Implement all the functions as per the customer requirement iii)Task 3: Create two objects of the Rectangle class and pass values to it. Call the functions to calculate area and perimeter by using the values of length and widthStep 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