Area+and+perimeter+of+rectangle+coding


 * Specification **

Adapt the program area of a rectangle so that it also calculates the perimeter of the rectangle. The program should:
 * ask the user to enter the rectangle length
 * ask the user to enter the rectangle breadth
 * ask the user the unit of measure (mm, cm, m or km)
 * calculate the area using the formula A = l x b
 * calculate the perimeter of using the formula 2 x l + 2 x b

__**Code**__


 * Variables **

Create 5 variables:


 * //rect_length//: length of rectangle (entered by user)
 * //rect_breadth//: breadth of rectangle (entered by user)
 * //rect_units//: unit of measure for length and breadth (entered by user)
 * //rect_area//: calculated area of rectangle
 * //rect_perimeter//: calculated perimeter of rectangle

Make sure each variable is unticked so it doesn't get displayed at the top of the screen.




 * Script **




 * Testing **

Copy and complete this test table