Uncategorized
Home > Uncategorized (Page 83)
Posted at 22:04h
in
Uncategorized
by admin
Question:
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 python...
Posted at 14:31h
in
Uncategorized
by admin
Question:
Make a program to verify whether the credit card numbers from ABCD Bank are valid or not.
A valid credit card from ABCD Bank has the following characteristics:
It must start with a 4, 5 or 6.
It must contain exactly 16 digits.
It must only consist...
Posted at 01:34h
in
Uncategorized
by admin
Question:
Use TKinter to create 6 buttons as following picture:
...
Posted at 00:59h
in
Uncategorized
by admin
Question:
You are given a string . Suppose a character 'a' occurs consecutively n times in the string. Replace these consecutive occurrences of the character 'a' with (n, 'a') in the string.
Input Format: A single line of input consisting of the string .
Output Format: A single line of...
Posted at 17:32h
in
Uncategorized
by admin
Question 1:
Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the "PLAY" button. (Scroll down for more hint)
You can download the background images from below:
The size of...
Posted at 03:01h
in
Uncategorized
by admin
Question:
You are given a string . Suppose a character 'a' occurs consecutively n times in the string. Replace these consecutive occurrences of the character 'a' with (n, 'a') in the string.
Input Format: A single line of input consisting of the string .
Output Format: A single line of...
Posted at 02:26h
in
Uncategorized
by admin
Question:
Please make some modifications of the program we made in the class. Make ball appears on the top if the ball reaches the bottom, or appears at bottom when the ball reaches the top....
Posted at 22:03h
in
Uncategorized
by admin
Question:
Modify the program we made in the class to:
Create Enemy class
Add one enemy spaceship to your program
The enemy spaceship will keep moving from left to right and right to left side of the screen.
You can download all the necessary images from below:
...
Posted at 03:25h
in
Uncategorized
by admin
Question:
Using function or object method to write a program to return the number of times that the string
"code" appears anywhere in the given string, except we'll accept any letter for the 'd', so "cope" and "cooe" count.
For example:
'aaacodebbb' will have 1 "code"
'codexxcode' will have 2 "code"
'cozexxcope'...
Posted at 21:35h
in
Uncategorized
by admin
Question:
Make a program to verify whether the credit card numbers from ABCD Bank are valid or not.
A valid credit card from ABCD Bank has the following characteristics:
It must start with a 4, 5 or 6.
It must contain exactly 16 digits.
It must only consist...