Use the skater you created for the unit 4 assignment add 2


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

 

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Use the skater you created for the unit 4 assignment add 2
Reference No:- TGS01107706

Expected delivery within 24 Hours