Author: admin
Home > Articles posted by admin (Page 40)
Question:
Please refer to Pirateship 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...
Question 1:
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input:
Which multiplication table would you like? 5
Sample Output:
Here’s your table:
5 x 1 = 5
5 x 2...
Question:
Make a pygame window with the following beach ball, the ball could bounce with gravity:
...
Question:
Spamway Inc. maintains a network of zombie computers to solicit and collect orders for its various fine products. Each zombie computer is responsible for zero or more subordinate zombies that it coordinates in these activities.
Spamway uses a simple communication strategy among its zombies for transmitting...
Posted at 14:40h
in
Uncategorized
by admin
Question 1:
Use TKinter to create 6 buttons as following picture:
Question 2:
Use TKinter to create login window as following picture:
...
Posted at 23:21h
in
Uncategorized
by admin
Question:
The term “code monkey” is sometimes used to refer to a programmer who doesn’t know much about programming. This is unfair to monkeys, because contrary to popular belief, monkeys are quite smart. They have just been misunderstood. This may be because monkeys do not speak...
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:
Create a loop between 1 to 20.
Print “fizz” if the number is divisible by 3
Print “bizz” if the number is divisible by 5
Print “fizzbizz” if a number is divisible by both 3 and 5.
Otherwise, print the number itself.
Hint: You should use...
Question 1:
Use while loop (NOT for loop) to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this:
Sample Input:
Which multiplication table would you like? 7
How high do you want to go? 12
Sample Output:
Here’s...
Question:
We have learned how to make the pirate ship bouncing left and right, try the following:
How to make the pirate ship move and bounce diagonally when it reaches the edge ( the pirate ship image is 200px by 166px)
...