Question: Part 4 Locate and Correct coding errors (15 po) Examine the code shown below (the line numbers on the left are not part of the

 Part 4 Locate and Correct coding errors (15 po) Examine the

Part 4 Locate and Correct coding errors (15 po) Examine the code shown below (the line numbers on the left are not part of the code but are needed for reference 1 #include 2 float computeHypot (float x, float y) 3 int main(void) t 4 float sidel, side2: 5 float hypot; 6 print("nEnter two floating point values separated by a blank: ") 27 scanf ("td%d", side1 , side2), // Four errors here 8 printf ("In"); 9 print (n // Two errors here // One error here 10 computeHypot( 11 printf ("result %f ", result); = 12 return 0: 13 //end main 14 float computeRypot (float x, int y); 15 f 16 float r: 17 r = sqrt (x* x + y*y) 18 return ri 19) //end computeHypot // Two errors here // Two errors here There are 11 errors all together and they are located in lines 7, 10, 11, 14, and 17. Explain what each error is and how to fix each error. Notes: You can either mark and correct the errors on the code lines. Or you can write your answers in the separate blank sheets, and refer to each error by the line number and error number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!