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


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 Preview :

Prepared by a verified Expert
Basic Computer Science: Use the skater you created for the unit 4 assignment add 2
Reference No:- TGS01230455

Now Priced at $45 (50% Discount)

Recommended (93%)

Rated (4.5/5)

A

Anonymous user

2/16/2016 7:33:25 AM

In recognizing the programming constructs of functions (that is, the above assignment), I am very lucky to get the correct solution from your website. I must say, your tutors are best. I also suggest my friends to get assistance from your website.