Project 10: General Case Additive Perimeter

Examine the figure above.  If A = 12 units, B = 15 units, C = 4 units, D = 10 units, what is the perimeter (the distance all the way around the figure)?

The answer is 54 units.  Think about how long the unmarked sides are.


Project: Variables 'a', 'b', 'c', and 'd' have been initialized to unknown values.  Appropriately initialize the value of 'perimeter

Note: If your code works for 5 test cases in a row, you can enter your e-mail address.