Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# scenery Rect ( 0 , 0 , 4 0 0 , 1 5 0 , fill = 'lightBlue' ) Rect ( 0 , 1

# scenery
Rect(0,0,400,150, fill='lightBlue')
Rect(0,150,400,95, fill='oliveDrab')
Polygon(170,150,230,150,380,245,20,245, fill='tan')
Circle(85,55,20, fill='white', opacity=70)
Circle(66,60,15, fill='white', opacity=70)
Circle(105,60,15, fill='white', opacity=70)
Circle(290,55,20, fill='white', opacity=70)
Circle(270,60,13, fill='white', opacity=70)
Circle(310,60,15, fill='white', opacity=70)
Circle(325,65,10, fill='white', opacity=70)
# dashboard
Oval(200,250,300,100, fill='lightSlateGray')
Polygon(0,245,30,245,70,225,330,225,370,245,400,245,400,400,
0,400, fill='lightSlateGray')
Oval(200,270,300,100)
Rect(50,270,300,50)
steeringWheel = Circle(200,370,160, fill=None, border=rgb(85,95,110),
borderWidth=45)
Polygon(80,380,80,350,140,340,260,340,320,350,320,380,
260,385,245,400,155,400,140,385, fill=rgb(85,95,110))
# steering wheel grips
Polygon(38,355,43,330,90,345,88,360,88,380,90,395,43,410,38,385,
fill=rgb(65,73,84))
Polygon(362,355,357,330,310,345,312,360,312,380,310,395,357,410,
362,385, fill=rgb(65,73,84))
leftHand = Circle(62,370,21, fill='saddleBrown')
rightHand = Circle(337,370,21, fill='saddleBrown')
message = Label('Good!',200,180, fill='white', size=15, bold=True)
def onMousePress(mouseX, mouseY):
# Move the hands to where the mouse is.
### Place Your Code Here ###
# Update the message. There are 3 possible messages:
# if the left hand is fully on the steering wheel,
# if the left hand is touching the wheel, or
# if the left hand is not touching the wheel.
### Place Your Code Here ###
pass

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions