Posted at 03:11h
in
Uncategorized
by admin
Question:
Modify the program we made in the class to:
Create Missile class
Add one missile to your program
missile will automatically move from your spaceship to the top of the screen
once missile reach the top of the screen, it will re-appear from the location of your fighter
Hint:
speed has...
You could create python file and Write program for the following questions, detailed instructions as below:
Open Python IDLE
In Menu Bar, Click “File” => “New File”
In the file write your program
After finishing writing the program, click “Run”=>”Run Module” in menu bar or...
Posted at 02:39h
in
archives
by admin
Problem Description
Suppose we have a number like 12. Let’s define shifting a number to mean adding a zero at the end. For example, if we shift that number once, we get the number 120. If we shift the number again we get the number 1200....
Question:
Leafy Lee likes leaves. He also likes interleaving things. So he definitely likes interleaving leaves.
Lee starts with two piles of N (1≤N≤1000) leaves each, and wants to combine them into one new pile. He’ll start by taking the top leaf of the first pile, then...
Posted at 02:30h
in
Uncategorized
by admin
Question:
Create a PWD(Password) class it will contain the following methods:
__init__
to create a password object by passing one argument into it
validate
to check the validity of password input by users. it need to use the following method:
checkLetter: At least 1 letter between [a-z] and...
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...