Dot Shooter

cid_70

This game is called Dot Shooter and the purpose is the black ball to hit the red ball as many times as you can if you miss the red ball you lose a point, and the background makes it a more challenging game to play but overall is very enjoyable.

Lab 3

inputStr = input (“Input a number: “)
number= int(inputStr)
if number<=0:
print “You entered a negative number”
else:
print (number)
while number!=1:
if number%2==0:
number=number//2
print (number)
else:
number=(number*3)+1
print (number)

print (“End”)

Lab 2

#Cristhian Jimenez
#Lab 2
# Date: 10/4/13

x = input (‘Enter the first number: ‘)
y = input (‘Enter the second number: ‘)

print x+y
print x-y
print x*y
print x/y

if x > y:
print(“x is greater than y”)

else:
print(“y is greater than x”)

Hello world!

This is the first post on your Learning Blog. Edit or delete it, then start blogging!

NOTE: Remember to add appropriate Category and Tags to your posts. This will help your professors and other visitors find the content they are looking for. The Category “Coursework” and the Tags “OpenLab” and “City Tech” have already been applied to this post. Feel free to make changes!