Home /
Expert Answers /
Computer Science /
problem-1-write-a-program-that-draws-a-planet-and-four-moons-orbiting-the-planet-specifications-pa270
(Solved): Problem 1 - Write a program that draws a planet and four moons orbiting the planet Specifications - ...
Problem 1 - Write a program that draws a planet and four moons orbiting the planet Specifications - all of the code must be contained within functions - the core algorithm must be within a main0 function - any important control flow to the core algorithm must be in the main 0 function, not in a separate funciton - there must be a function called moon0 that is called on four times to draw the moons in different locations orbiting the plant - the plathet must be bigger than the moons - the planet and moons do NOT need to be filled with color - the plants and moons should not be connected J: 1 import turtie as turtle - Some potentially useful methods turtle. forward(distance) o move pen in direction a specified distance turtle. right(angle) " turn pen to the right a specified number of degrees turtle. 1eft(angle) "turn pen to the left a specified number of degrees turtle-up() "pull pen up - no draving when moving turtle.down() # put pen down - drowing when moving turtle.circle(radius) # draw a cincle of a given radius. The center is radius units left of the pen