project4

move the rover turtle to the new location and mark

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ere are the specifications for writing the rest of the Mars Explore program: (2a) Start by writing three functions: rover_loc, water_content, and temp. There are no parameters. Each of these functions will use the randint function from module random to simulate data collection on Mars. The rover_loc function should return a random integer between  ­275 and 275. The water_content function should return a random integer between 1 and 290 (ppm). And the temp function should return a random integer between  ­178 and 1 (degrees Fahrenheit). For example: def rover_loc(): ''' return random number for rover location ''' return random.randint( ­275, 275) Test each of these functions individually. (2b) Write a function called mars_explore to do the following: • Determine the next location for exploration. (Call ro...
View Full Document

Ask a homework question - tutors are online