Question:
Being able to send encoded messages during World War II was very important to the Allies. The messages were always sent after being encoded with a known password. Having a fixed password was of course insecure, thus there was a need to change it frequently....
Question:
You have n boxes in a line on the table numbered 1 . . . n from left to right. Your task is to simulate 4 kinds of commands:
1 X Y : move box X to the left to Y (ignore this if X is...
Question:
Continue modify the war-robot program we made in the class, so that:
if enemy’s hp is lower or equal to 0, use msgbox to display message ‘you win’, and the while program finish.
it will be the enemy’s turn to strike you back. Enemy can...
Question 1:
Create a Student class and make the following methods to :
__init__() – Initialize it with name and roll number.
__str__() – Display all information of the student.
setAge() – It should assign age to student.
setMarks() – It should assign marks to the...
Question:
Thinking of the following question:
how to add the different turret to the spacestation, and it can shoot bullet?
...
Question 1
We are going to continue to work on the ‘hero.db’ database. Since we have already created a table called “heroes” in the database, we are going to add 2 more records in the table “heroes”:
Field
name
hero_level
int_growth
agi_growth
str_growth
hero_int
hero_agi
hero_str
New record 1
Hercules
1
3.6
6
9.9
270
150
140
New record 2
Blade
1
10
18.5
14.5
40
28
39
Question 2:
From all the records in...