Question: Using C++ to solve these problems The code below is supposed to print Side1=3, Side2=4, We have doubled each side, so now:, Side1=6, and Side2=8,
Using C++ to solve these problems
The code below is supposed to print Side1=3, Side2=4, We have doubled each side, so now:, Side1=6, and Side2=8, each on its own line. For this problem, you need to do the following.
-
fix it so that it works properly. The solution required writing a few short member functions for the Rectangle class and making a few minor modifications to the main body. (You are not allowed to make side1 and side2 public.)
-
Delete my comments and add your own. When you are done, there should be comments immediately be before all of the functions except for constructors and the main function. You should also comment on any other lines you change or add. For this problem, you dont need to add any other comments, but if you chose to do so it might help us give you par- tial credit. For this problem, you can write all member functions inside the class definition. (You dont have to use function declarations.)

1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
