Hi, i need a Turtle python program that runs a sport in the winter olympics. ( F
ID: 3874985 • Letter: H
Question
Hi, i need a Turtle python program that runs a sport in the winter olympics. (For example, snowboarding, etc.) It must follow the requirements. Thanks.Here are the Requirements:
-Include rules of the program seperately
-Declare as many variables as possible at the start of the program , with meaningful names. Include comments for their purpose. Methods, or defs, are selected to break the problem into smaller problems.
-Your race will be random generated so each time there is a possibility that a different winner
-Have a countdown of “READY” “SET” “GO” appear on the screen and then the turtles take off
-Have the program tell the winner[s]
-Award Medals
-User may guess who will win
-Allow the user to continue to do the game over and over again until they do not want to do it anymore
-When the user choose to exit - Display a new screen and ercap the events
-Make sure you have a information screen for user explaining the Game.
-Make your program screens look nice.
-Include a game menu
Hi, i need a Turtle python program that runs a sport in the winter olympics. (For example, snowboarding, etc.) It must follow the requirements. Thanks.
Here are the Requirements:
-Include rules of the program seperately
-Declare as many variables as possible at the start of the program , with meaningful names. Include comments for their purpose. Methods, or defs, are selected to break the problem into smaller problems.
-Your race will be random generated so each time there is a possibility that a different winner
-Have a countdown of “READY” “SET” “GO” appear on the screen and then the turtles take off
-Have the program tell the winner[s]
-Award Medals
-User may guess who will win
-Allow the user to continue to do the game over and over again until they do not want to do it anymore
-When the user choose to exit - Display a new screen and ercap the events
-Make sure you have a information screen for user explaining the Game.
-Make your program screens look nice.
-Include a game menu
Here are the Requirements:
-Include rules of the program seperately
-Declare as many variables as possible at the start of the program , with meaningful names. Include comments for their purpose. Methods, or defs, are selected to break the problem into smaller problems.
-Your race will be random generated so each time there is a possibility that a different winner
-Have a countdown of “READY” “SET” “GO” appear on the screen and then the turtles take off
-Have the program tell the winner[s]
-Award Medals
-User may guess who will win
-Allow the user to continue to do the game over and over again until they do not want to do it anymore
-When the user choose to exit - Display a new screen and ercap the events
-Make sure you have a information screen for user explaining the Game.
-Make your program screens look nice.
-Include a game menu -Your race will be random generated so each time there is a possibility that a different winner
-Have a countdown of “READY” “SET” “GO” appear on the screen and then the turtles take off
-Have the program tell the winner[s]
-Award Medals
-User may guess who will win
-Allow the user to continue to do the game over and over again until they do not want to do it anymore
-When the user choose to exit - Display a new screen and ercap the events
-Make sure you have a information screen for user explaining the Game.
-Make your program screens look nice.
-Include a game menu
Explanation / Answer
The paython program:
from random import randint
from turtle import *
import random
import string
speed(0)
penup()
goto(-140, 140)
for st in range(15):
write(st, align='center')
right(90)
for num in range(9):
pendown()
forward(10)
penup()
forward(8)
penup()
backward(160)
left(90)
forward(20)
#no=input("Enter the number of variables:")
print ('READY'),
print ('SET') ,
print ('Go'),
for i in range(4):#number of variables
def name(size=4, chars=string.ascii_uppercase):
return ''.join(random.choice(chars) for _ in range(size))
name= Turtle()
name.color("#%06x" % random.randint(0, 0xFFFFFF))#random colour select
name.shape('turtle')
name.penup()
name.goto(-160, random.randint(0,100))# random speed select
name.pendown()
for turn in range(10):
name.right(36)
for turn in range(100):
name.forward(randint(1,5))
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.