You are only allowed to access this course webpage, the Python documentation, and Graphics documentation webpages. You are not allowed to access any other websites. You are not allowed to access files from your directory, or files from any other user's directories. Failure to abide by these rules is a violation of Academic Integrity, and will be treated as such.
Write a function gcd(a, b)
which takes two
integer
parameters. Your function should return the largest
positive integer that
divides both a, and b.
Write a function called fizz_buzz(some_number)
,
which takes an
integer as a parameter. Your function should return
"Fizz" for all values
of some_number that are multiples of 3, "Buzz"
for values that
are multiples of 5, "FizzBuzz" for values which are
multiples of both 3
and 5. In all other cases, your function should simply
return
some_value.
Write a python program which uses the Graphics module that displays two circles on the window. The user should be allowed to press the Left, Right, Up, and Down arrow keys to move one of the circles. If the m key is pressed, the Left, Right, Up, and Down arrow keys controll the other circle.
When you have finished, create a tar file of your test2
directory. To create a tar file, execute the following commands:
cd ~/cs120 tar czvf test2.tgz test2/
To submit your coding activities, go to inquire.roanoke.edu. You should
see an available assignment called Test #2 Bonus
.