project4

challenge redo function namedisplay from project 3

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: ver_loc twice, one time to get the x coordinate and another time to get the y coordinate of the rover’s next location.) • Move the rover (turtle) to the new location and mark the position. (You may want to explore the stamp() and dot() functions, for example, or use your square or triangle.) Show the turtle’s path (i.e., move the turtle with the pen in the down position). • Collect data at this location: assign local variables (i.e., variables defined inside the function) to the values returned from calls to the water_content and temp functions. • Display the data: use the Python print function to display the x and y coordinates of the rover, and the data for the water content and temperature at this location. Function mars_explore has no parameters and does not return a value. Test your function after each step is completed. Do not wait until the...
View Full Document

This note was uploaded on 02/12/2014 for the course CIS 122 taught by Professor Staff during the Spring '08 term at Oregon.

Ask a homework question - tutors are online