Question: Please motify this C++ program to use points. Thank you. 1 // This program asks the user to enter the length and width of 2

Please motify this C++ program to use points. Thank you. 1 // This program asks the user to enter the length and width of 2 // a rectangle. It calculates the rectangle's area and displays 3 // the value on the screen. 4 #include  5 using namespace std; 6 7 int main() 8 { 9 int length, width, area; 10 11 cout << "This program calculates the area of a "; 12 cout << "rectangle. "; 13 cout << "What is the length of the rectangle? "; 14 cin >> length; 15 cout << "What is the width of the rectangle? "; 16 cin >> width; 17 area = length * width; 18 cout << "The area of the rectangle is " << area << ". "; 19 return 0; 20 } 

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!