Posted at 14:13h
in
Uncategorized
by admin
Question:
Please refer to Ball class to create a class Enemy:
Create one enemy on the screen
The enemy will appear at the top of the screen when we start the game
The enemy could bounce left-right
The enemy will keep move down until to the...
Posted at 20:08h
in
Uncategorized
by admin
===============================
1. Variables
===============================
Question 1.1
Make a variable and assign a number to it (any number you like). Then display your variable using print.
Question 1.2
Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display the new value using print.
Question...
Posted at 01:00h
in
Uncategorized
by admin
Question 1
Make a variable and assign a number to it (any number you like). Then display your variable using print.
Question 2
Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display the new value using print.
Question 3
Make...
Posted at 00:20h
in
Uncategorized
by admin
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...
Posted at 23:40h
in
Uncategorized
by admin
Question 1.
Use float() to create a number from a string like '12.34'. Make sure the result is really a number!
Question 2.
Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up or down?
Question 3.
Try using int() to create...
Problem Description
Boring is a type of drilling, specifically, the drilling of a tunnel, well, or hole in the earth. With some recent events, such as the Deepwater Horizon oil spill and the rescue of Chilean miners, the public became aware of the sophistication of the...