Question:
Use the classes we created in the previous class, write code to create an average stack, the average stack should contain the average of all the numbers in the stack including the top number.
This is similar to MinMaxStack, but instead of a minimum and maximum...
Posted at 14:52h
in
Uncategorized
by admin
Question 1:
Use TKinter to create following window with three buttons:
the “blue” button will print “blue” in the python shell screen
the “red” button will print “red” in the python shell screen
if left mouse button click the “color” button will print “blue” in the...
Posted at 14:43h
in
Uncategorized
by admin
Question:
Create a Tank class which have the attributes of:
name
direction(use ‘up’, ‘down’, ‘left’ or ‘right’)
x position and
y position
The class also have the following method:
move (self, direction, steps)
Using __init__() to Initial the tank to make sure it start from x position of 0, y...
Posted at 14:39h
in
archives
by admin
Question:
Create a Tank class which have the attributes of:
name
direction(use ‘up’, ‘down’, ‘left’ or ‘right’)
x position and
y position
The class also have the following method:
move (self, direction, steps)
Using __init__() to Initial the tank to make sure it start from x position of 0, y...
Question:Annie has two favourite baseball teams: the Eagle and the Warrior. She has followed them throughout the season, which is now over. The season lasted for N days. Both teams played exactly one game on each day.
For each day, Annie recorded the number of runs scored by...
Posted at 14:30h
in
Uncategorized
by admin
Question:
Write a program that asks for your name, then street, then city, then province, then postal code (all in EasyGui message boxes). The program should then display a mailing-style full address that looks something like this:
Hint:
'\n' can help you create a new line
for example:
>>>...