Question:
A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20
percent off purchases of greater than $10. Write a program that asks the purchase price and
displays the discount (10% or 20%) and the final price.
...
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:
...
Question:
As we mentioned in the class, please modify the code below to create simple calculator to:
add addition, subtraction, multiplication and division button and calculate accordingly
check if the num1 and num2 is valid entry(has to be all digits)
show "please select operation" when user...
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'...
Question:
Use TKinter to create following window with one label and 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 make label...