Tamil Nadu Board of Secondary EducationHSC Science Class 11

Write the specification of an algorithm hypotenuse whose inputs are the lengths of the two shorter sides of a right-angled triangle, and the output is the length of the third side. - Computer Science

Advertisements
Advertisements
Short Note

Write the specification of an algorithm hypotenuse whose inputs are the lengths of the two shorter sides of a right-angled triangle, and the output is the length of the third side.

Advertisements

Solution

  1. hypotenuse (a, b)
  2. – – inputs: a, b are real numbers, a > 0, b > 0
  3. – – outputs: c2 = a2 + b2 wrhere c is real number, c > 0
Concept: Algorithm Design Techniques
  Is there an error in this question or solution?
Chapter 6: Specification and Abstraction - Evaluation - Section - D [Page 87]

APPEARS IN

Tamil Nadu Board Samacheer Kalvi Class 11th Computer Science Answers Guide
Chapter 6 Specification and Abstraction
Evaluation - Section - D | Q 1. | Page 87
Share
Notifications



      Forgot password?
Use app×