Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Desk Check function testPyramid) t var pa pyramidSurfaceArea(8, 7); document.get

ID: 3728750 • Letter: D

Question

Desk Check

function testPyramid) t var pa pyramidSurfaceArea(8, 7); document.getElementById('outputDiv').innerHTML pa; // Computes and returns the surface area of the // four triangular faces of a regular pyramid // with the specified base length and height. function pyramidSurfaceArea (base, height) f var edge = Math.sqrt(base*base/2 var triArea triangleArea(base, var pyramidArea-4 * triArea; return pyramidArea; + height *height); edge, edge); base height edge triArea ramidArea // Computes and returns the area ofa // triangle with side lengths a, b, and c function triangleArea(a, b, c) 1f var s=(a+b+c)/2; var area Math.sqrt(s * return area; (s-a) (s-b) (s-c)); * * Round all answers for this question to one place after the decimal S C area Check

Explanation / Answer

1)   pa = 129.0
  
   triArea =        32.2
   pyramidArea =    129.0
  
   a        =   8.0
   b        =   9.0
   c        =    9.0
   s        =    13.0
   (s-a)   =   5.0
   (s-b)   =   4.0
   (s-c)   =   4.0
   area   =   32.2

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote