Question:
Continue modify the program we made in the class:
create Energy class. A new energy crystal object will be created when the enemy spaceship explode, the energy will bounce in the window with x speed of randint(-3, 3) and y speed of randint(1, 2)
use...
Question:
You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the sum of...
Question:
Modify the program we made in the class. Create a Boss Class
the __init__() method will take three parameters (imgFile, location and speed)
the update() method will move the object, if the top of the object reaches the bottom of the screen, it will disappear...
Question:
One morning, completely by chance, Mirko found a positive integer N in the middle of the street. Since Mirko adores the number 30, he wants to know the maximum multiple of the number 30 that can be obtained by shuffling the digits of the number...
Posted at 21:54h
in
Uncategorized
by admin
Question:
Eric works in a door mat manufacturing company. One day, he designed a new door mat with the
following specifications:
◦ Mat size must be A x B. (A is an odd natural number, and B is 3 times A.)
◦ The design should have ‘WELCOME’ written in...
Question:
Use input to enter 4 integer numbers and calculate the total and average number of the these 4 numbers, round the result to the nearest integer number.
Sample Input:
n1: 45
n2: 32
n3: 67
n4: 15
Sample Output:
The total of 45,32,67,15 is 159, the average is 40.
...