rectangle calculation exercise

Write a program that sets the width and the height of a rectangle and then prints the area and the perimeter of that rectangle.

Area =lw

Perimiter = 2l + 2w

Write code to declare variables for length and width.

Then assign values to each of these variables: (You can choose.)

Then write the code to compute Area and Perimeterbased on these values.

Then Print : When the length is (insert the value of the length) and the width is (insert the value of the width), then the area is (insert the value of the area) and the perimeter is (insert the value of the perimeter.. (Do not worry about formatting the number. It will have many decimal places.)

Then change the value of just the length.

Then Print : Write a program that asks the user to type the width and the height of a rectangle and then outputs to the screen the area and the perimeter of that rectangle.