Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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 width

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions