Enhance the hit_the_target.py program that you saw in Program 3-9 so that, when the projectile misses the

Question:

Enhance the hit_the_target.py program that you saw in Program 3-9 so that, when the projectile misses the target, it displays hints to the user indicating whether the angle and/or the force value should be increased or decreased. For example, the program should display messages such as 'Try a greater angle' and 'Use less force.'Program 3-9 (hit_the_target.py) 1 # Hit the Target Game import turtle 2 3 4 # Named constants 7 5 SCREEN

20 # Draw the target. 21 turtle.hideturtle() 22 turtle.speed (0) 23 turtle. penup() 24 turtle.goto

Program 3-9 (continued) 33 turtle. forward(TARGET_WIDTH) 34 turtle.penup() 35 36 37 turtle.goto(0, 0) 38

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: