You should create python file and write program for the questions, detailed instructions as below:
Open Python IDLE
In Menu Bar, Click “File” => “New File” (important!!!)
Write your program in the new file
After finishing writing the program, click “Run”=>”Run Module” in menu bar or just...
Question 1:(please use function that return a value)
Write a program to display information to a driver based on his/her speed according to the following table:
km/h over the limit
Fine
1 to 20
$100
21 to 30
$270
31 or above
$500
Sample Input 1:
Enter the speed limit: 40
Enter the recorded speed of the...
Question:
Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the “PLAY” button. (Scroll down for more hint)
You can choose and download one of the background images base...
Question:
Continue modify the program we made in the class:
the game will be restarted if you press the space key.
...
Question:
Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the “PLAY” button. (Scroll down for more hint)
You can choose and download one of the background images base...
Question:
We have learned how to make the pirate ship loop in the screen, try the following:
How to make the pirate ship move and bounce left to right and right to left inside the window area when it reaches the edge.
...