Posted at 01:58h
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 use message box...
Posted at 01:50h
in
Uncategorized
by admin
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 21:05h
in
Uncategorized
by admin
Question 1:
Please using easygui to create the program we made in the class. The enter box will ask you password, if you get the right password, the msgbox will display 'FBI Access granted'
Question 2:
Create a simple number guessing game. The computer will ask the first...
Posted at 20:43h
in
Uncategorized
by admin
You can do Question 1~ 3 in Python IDLE:
Question 1.
Use float() to create a number from a string like ‘12.34’. Make sure the result is really a number!
Question 2.
Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up...
Posted at 17:09h
in
Uncategorized
by admin
Question:
Leap Years are
any year that can be exactly divided by 4 (such as 2016, 2020, 2024, etc)
except if it can be exactly divided by 100, then it isn't (such as 2100, 2200, etc)
except if it can be exactly divided by 400, then it is (such as...
Posted at 16:09h
in
archives
by admin
Question:
Problem Description
A fish-finder is a device used by anglers to find fish in a lake. If the fish-finder finds a fish, it will sound an alarm. It uses depth readings to determine whether to sound an alarm. For our purposes, the fish-finder will decide that...