Question:
Once upon an ancient time, a knight was preparing for the great battle in GridLand. The GridLand is divided into square grids. There are R horizontal and C vertical grids. Our particular knight in this case can always give an (M, N) move, i.e. he...
Question:
Ken is working for the secret agency. He is going to send a secret message that encodes UPPERCASE words by shifting their letters forward.
Shifting a letter by S positions means to go forward S letters in the alphabet. For example, shifting B by S = 3 positions gives E. However, sometimes...
Question 1:
Please using easygui to create the program we made in the class. The enter box will ask you password, if you get the right password, the msgbox will display ‘FBI Access granted’
Question 2:
Create a simple number guessing game. The computer will ask the first...
Question:
Make changes of the program by creating Enemy class, so we can create an enemy object in the main program, the enemy spaceship could complete the following tasks:
The enemy could appear at the top of the screen and bounce back and forth when it...
Posted at 06:18h
in
Uncategorized
by admin
Question:
Try to use the queue class to implement a general simulation of Hot Potato. Our program will input a list of names and a number, we call it “num,” to be used for counting. It will return the name of the last person remaining after...
Posted at 06:16h
in
Uncategorized
by admin
Question:
Use input() to take 10 input from user, each item is separated by space. Then try to complete the following task:
Create a list from the input
Delete all repeated elements of the list.
Sample Input 1:
1 2 3 2 1 3 98 98 67
Sample Output...