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

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

1. shoot the basketball 2. if the basketball went through the hoop

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

and Maleek was either inside or on the 3-point line say "1

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?

did it! say "2 points for me" else if Maleek was behind

1. shoot the basketball 2. if the basketball went through the hoop and Maleek was either inside or on the 3-point line say "1 did it! say "2 points for me" else if Maleek was behind the 3-point line say "I did it!" say "3 points for me else end if say "Missed it!" end if Figure 5-34 Algorithm for Exercise 8

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 Programming Questions!