Friday, April 13, 2007
CSE 110 - LAB 6
my_list=[]
prime=1
print 2,
i = 3
gettingmultiples=3
while i <= num:
if not i in my_list:
print i,
prime=prime+1
while (gettingmultiples<=(num / i)):
my_list.append(i*gettingmultiples)
gettingmultiples=gettingmultiples+1
i=i+2
print "Primes Numbers: ", prime
CSE 110 - LAB 5
user=[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "]
ques=0
correct=0
wrong=0
#print ans[4]
while ques<16:
user[ques] = raw_input("What is the answer for question # ") ## CANT FIGURE OUT HOW TO DISPLAY NUMBER
if user[ques]==ans[ques]:
correct=correct+1
else:
wrong=wrong+1
ques=ques+1
if correct > 15:
print "Yes you have passed the test. YAY!"
else:
print "Sorry, you have failed the test! HAR HAR YOU LOOSE!"
print "Number Correct " , correct
print "Number Wrong ", wrong
CSE 110 - LAB 4
value=start
while value>1:
print value
if (value%2)==0:
value=value/2
else:
value=3*value+1
print value
CSE 110 - LAB 3
count=0
while count < times:
count=count+1
dna = raw_input("Enter the original DNA sequence: ")
rna=""
for base in dna:
if base is "A":
rna = rna + "U" # Adenosine is transcribed to uracil
elif base is "G":
rna = rna + "C"
elif base is "T":
rna = rna + "A"
elif base is "C":
rna = rna + "G"
print rna
CSE 110 - LAB 2
on = int (raw_input("How many times do you want to calculate this? "))
count = 0
while count count = count + 1
total_apples = int (raw_input("How many apples are there in all? "))
ask_user = int (raw_input("How many apples should Alan have more than Donald"))
apple_split = total_apples-ask_user
divide_apples = apple_split/2
final_apples = divide_apples+ask_user
print "Alan has" ,final_apples, "apples and Donald has ", divide_apples , "apples."
AIM 104 - Death Comes For The Archbishop
Death Comes for the Archbishop Reading Log
Death Comes for the Archbishop is a narrative by Willa Cather that focuses on the details of their travels of Father Jean Marie Latour and Father Joseph Vaillant. I personally think there is too much description of scenery in the text, it forced me to read everything slowly and sometimes even two or three times to understand what is being described. This book compares with another novel that we have read, Huckleberry Finn in which they travel long ways to accomplish something. Another thing that bothers me in academic readings is the mention of religion. Being Asian American, I was not raised up with the specific background and it’s sometimes hard to comprehend certain words, proverbs, and biblical meanings. This text had everything to do with the Catholic religion, a branch of Christianity that I’m slowly learning about now.
Similar to Huckleberry Finn, both Latour and Vaillant encounters a lot of obstacles, they take a total of a year to get from Ohio to New Mexico, a trip which in modern times would only take a couple of hours. What is worst of all is that upon arrival, Latour has to acquire authority which sets him on another adventure away from his goal of going to
The whole reason for their travels to the new world is because of religion and their faiths. They wanted to travel to
I personally dislike this book because of the detailed description of the landscape as they travel and the many characters that are presented to us. Most of them come from a religious background and it’s hard to differentiate and keep track of. I had a hard time understanding why these religious men went though all the trouble and how their faith was so strong to move them to do these things. The whole theme revolving around religion bores me, but as long as that medium helps civilize people then it’s a good thing that religion exists but I never found any interest in it. I’m more of a science type guy, life is based on facts.
AIM 104 - The Killer Inside Me Reaction Log
The Killer Inside Me :: Reaction Log
The Killer Inside Me by Jim Thompson is a very well planned out story about a man who murders and hurts many but gets away with all of it. The killer himself, Lou Ford is a cop from Texas and due to an earlier incident involving his brother, he develops this killer instinct however he was able to control it until now. Throughout his killings, he was never able to get caught because of his reputation as a good cop and a good investigator, no one ever suspects of him as the killer until the end. That makes a good alibi when killing people especially when the killer is the one of the end of the table asking the questions. The story is told through a first person narrative to give readers a better insight about Lou Ford’s real thoughts and feelings.
Lou Ford, as good of a guy he seems, also has some fetishes; he is a sadist, one who likes to inflict pain on others. While doing his job and trying to take care of prostitutes in town, he meets Joyce, a prostitute. It turns out coincidentally that Joyce is the opposite of Lou, which she likes to receive pain, a masochist. During the belt beating incident, Lou beats Joyce with a belt while he tied her up, and she liked it. I don’t know what is wrong with them but apparently it works out between the both of them. Joyce finds love and wants to be with Lou, but Lou doesn’t feel the same way about her.
The killer inside Lou let loose when he tries to get revenge for his brother’s death; he goes after the wealthy
Lou’s addiction causes him to commit more murders before his own demise. He kills Amy, his true lover and childhood friend and John a homeless man, both who could provide the evidence to uncover his actions. Therefore, in order to protect himself, he had to get rid of them. Being a sadist, he never kills his victims with a gun or anything quick that will resolve in a quick death, he wanted to prolong the pain before someone could die; he takes pride and pleasure in doing those things. At the end, evidence finally catches up to him and he has no where to run. To end the consequences of his actions, he commits suicide and takes his house with him in a deadly fire.
This story is “the” suspense thriller, seeing him murder through his own eyes makes the slow torturing killings more realistic. At the end, he gets what he deserves.