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 20:27h
in
Uncategorized
by admin
Question:
Create an object WordReverse to reverse a string.
You need one argument (which is the original string) to create the object, for example:def __init__(self, word):
You need one method to reverse the string and it will return a reversed string, you can define the method as following:def...
Posted at 19:19h
in
Uncategorized
by admin
Question 1.
Use EasyGui to write a program to convert temperatures from Fahrenheit to Celsius. The formula for that is: Celsius = 5 / 9 * (Fahrenheit - 32). Use GUI input and output. You need to create a easygui enterbox to ask Fahrenheit, then...
Posted at 19:28h
in
Uncategorized
by admin
Question:
Modify the program we made in the class:
if your spaceship touched the enemy, the game over and return back the the start screen. so you can click the play button and restart the game.
...
Question:Let's say you have 4 coins each worth 1$, 2$ , 5$ and 10$. You have to find the number of ways you can give him N dollars change. N is a whole number.
Sample Input 1: 1
Sample Output 1:1
Explanation: You can give him only one 1$...
Posted at 18:58h
in
Uncategorized
by admin
Question:
Write a method that reads in three angles (in degrees). State the type of the triangle based on the conditions below:
If all three angles are 60, output Equilateral.
If the three angles add up to 180 and exactly two of the angles are the...