Question:
Continue modify the war-robot program we made in the class, so that:
it will be the enemy’s turn to strike you back. Enemy can only use gun to fire and cause damage between 50-90.
after enemy’s turn, if your hp is lower or equal to...
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 the following image (You need download the following images and save into the same folder...
You can do Question 1~ 3 in Python IDLE:
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...
uestion 1:
Write a program that asks the user to enter his/her name, age, favorite color, and favorite food. Have the program save all four items to a text file called myinfo.txt, each one on a separate line.
Question 2:
Write a program that asks the user to enter...
Question:
A school team is trying to assign jerseys numbered 1,2,3,…,J to student athletes. The size of each jersey is either small (S), medium (M) or large (L).
Each athlete has requested a specific jersey number and a preferred size. The athletes will not be satisfied with...
Question 1:
Create a Tank class which have the attributes of:
model
direction(use ‘up’, ‘down’, ‘left’ or ‘right’)
x position and
y position
The class also have the following method:
move () method can change the x or y position by 10 base on the tank’s direction. (‘up’...