Question: #8359

IT111 4: Recognize the programming constructs of functions Complete Solution

IT111-4: Recognize the programming constructs of functions.

Instructions:

Use the skater you created for the Unit 4 assignment. Add 2 cones to the ice that the skater will skate around in a figure 8. See Exercise 6-2 Exercise 7 and 8 as an example. You will first check the skater’s position and use that information in making the decision whether the skater should begin her turn. You will demonstrate that you understand how to combine functions and if statements.

 

Requirements:

1. The skater from Unit 4 assignment is placed on a new pond with two cones.

2. Student uses a function to check the skater’s distance from the cones (any one of several functions might be used here).

3. Student uses an if statement to determine when the skater is close enough to begin a half circle turn around the cone.

4. When the condition of the if statement is true, the skater begins a half turn around the cone.

5. Final output of the code is that the skater completes a figure 8.

Solution: #8361

IT111-4: Recognize the programming constructs of functions Complete Solution

New ponds with two cones are placed on the skater from Unit 4 assignment. T...
Tutormaster
Rating: A+ Purchased: 11 x Posted By: Vikas
Comments
Posted by: Vikas

Online Users