Question: 10. Does the algorithm in Figure 5-36 produce the same results as the solution shown in Figure 5-5 in this lesson? If not, why not?

10. Does the algorithm in Figure 5-36 produce the same results as the solution shown in Figure 5-5 in this lesson? If not, why not?

1. shoot the basketball 2. if the basketball hit the rim say

1. shoot the basketball 2. if the basketball hit the rim say "So close" else if the basketball went through the hoop say "I did it!" if Maleek was outside the 3-point line say "3 points for me" else say "2 points for me" end if else say "Missed it!" end if end if

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