Question: Match the stages of the software development process with each step of producing the area of the right triangle. Options are: 1.Problem statement 2. Input/output
Match the stages of the software development process with each step of producing the area of the right triangle.
Options are: 1.Problem statement 2. Input/output description 3.Hand example 4.Algorithm development 5.Testing
A) To produce the area, the program will need the two sides of a right triangle (not the hypotenuse).
B) Given ant positive values of x and y, calculate the area of the right triangle with sides of length x, y and
C) The area of a right triangle can be thought of as one-half the area the area of a rectangle or one can use the following formula for the area of a triangle. area=1/2base*height
D) For the (3,4,5) right triangle, the area=3*4/2+6. for the (5,12,13) right triangle, the area=5*12/2=30.
E) 1) prompt for an input the base of a right triangle, 2) prompt for an input the height of a right triangle, 3) calculate the area as base*height / 2, 4) display the area
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
