answersLogoWhite

0

The exact code would depend on the programming language you are using, but the basic principle would be:

1. have the width and height inputted to the program

2. double both and add together

3. output the result

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do i write an algorithm using pseudocode especially when it concerns salary and net salary?

to find area and perimeter of a rectangle


How do you find area and perimeter with an algorithm?

To find the area and perimeter of a shape using an algorithm, you first need to define the shape's properties. For example, for a rectangle, you can use the formulas: area = length × width and perimeter = 2 × (length + width). The algorithm should take the necessary dimensions as input, compute the area and perimeter using these formulas, and then return the results. This approach can be adapted for different shapes by using their specific formulas.


How do you find the perimeter of a triangle with the perimeter of a rectangle?

There is no reason for the perimeter of a triangle to have any relation to the perimeter of an unrelated rectangle!


How to find a perimeter of the rectangle?

the perimeter of a rectangle is calculated by : 2*(l+b)


The length of a rectangle is twice its width If the perimeter of the rectangle is 54y find its area?

The length of a rectangle is twice its width. If the perimeter of the rectangle is , find its area.


How can you find the answer for the perimeter and area of a rectangle?

find the perimeter and area of a rectangle that is 15cm long and 5cm wide


The length of a rectangle is 5 more then the width Find the perimeter and the area of the rectangle?

the length of a rectangle is 5 more then the width. Find the perimeter and the area of the rectangle


Write an algorithm and draw flowchart to calculate the perimeter of a square?

Sure, honey. First, let's keep it simple. To calculate the perimeter of a square, you just need to multiply the length of one side by 4. So, if the side length is "s", the formula is 4s. As for the flowchart, draw a square with "s" labeled on one side, then an arrow pointing to a box that says "Perimeter = 4s". Done and done, darling.


How to find the perimeter and area of a rectangle?

To find the perimeter you add and to find the area we multiply.


Can you use he formula for the perimeter of a rectangle to find the perimeter of any square?

Square is a special case of a rectangle and the same formula may be used to find the perimeter


How do yo find perimeter of a rectangle?

To find the perimeter of a rectangle you must calculate the lengths of each of the sides and add them all together.


Write an algorithm to find the root of quadratic equation?

Write an algorithm to find the root of quadratic equation