Posted at 21:39h
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 1:
Write a program that asks the user to enter his/her name, age, favorite color, and favorite food. Have the program save all four items to a text file, each one on a separate line.
Question 2:
Write a program that asks the user to enter his/her favorite book...
Question 1.
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input:
Which multiplication table would you like? 5
Sample Output:
Here's your table:
5 x 1 = 5
5 x 2...
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...
Question:
Important!!!! Please read question through carefully, if you have any questions, please do not hesitate to contact me through weChat. The problem solving thinking of this question will help you understand future computer competition questions.
You and your friend have come up with a way to...
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...