5. See the code below on line 9 there iš a miSsIng * Calculating the hypotenuse 2 import math 3 side b-float(input("Please enter the length of side b in cm The length of the hypotenuse is Please enter the length of side b in cm 3 Please enter the length of side a in cm 4 5.0 cm ")) The area of this triangle is 6.0 4 side_a = float (input("Please enter the length of side a in > cm ")) 5 side_c = math.sqrt((side_a side_a) + (side_b*side_b)) 6 print ("The length of the hypotenuse is ",side_c, "cm") afind the area of the triangle 9. area_T- ( 10 print("The area of this triangle is ",area_T) Select the correct code:

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
5. See the code below on line 9 there is a missing instruction:
Calculating the hypotenuse
Please enter the length of side b in cm 3
2 import math
3 side b=float(input("Please enter the length of side b in cm The length of the hypotenuse is 5.0 cm
Please enter the length of side a in cm 4
"))
The area of this triangle is
6.0
side_a = float (input("Please enter the length of side a in >
cm "))
5 side_c = math.sqrt((side_a * side_a) + (side_b*side_b))
6 print ("The length of the hypotenuse is ",side_c. "cm")
4
7.
8.
#find the area of the triangle
9 area_T= (
print("The area of this triangle is ",area_T)
10
Select the correct code:
a) (side_a * side_b)/2
b) (side_a*side_a)/side_c
c) (side_b*side_c)/2
Explain why this code will complete the program as required. You may wish to draw a diagram to help
communicate your ideas.
Transcribed Image Text:5. See the code below on line 9 there is a missing instruction: Calculating the hypotenuse Please enter the length of side b in cm 3 2 import math 3 side b=float(input("Please enter the length of side b in cm The length of the hypotenuse is 5.0 cm Please enter the length of side a in cm 4 ")) The area of this triangle is 6.0 side_a = float (input("Please enter the length of side a in > cm ")) 5 side_c = math.sqrt((side_a * side_a) + (side_b*side_b)) 6 print ("The length of the hypotenuse is ",side_c. "cm") 4 7. 8. #find the area of the triangle 9 area_T= ( print("The area of this triangle is ",area_T) 10 Select the correct code: a) (side_a * side_b)/2 b) (side_a*side_a)/side_c c) (side_b*side_c)/2 Explain why this code will complete the program as required. You may wish to draw a diagram to help communicate your ideas.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,