Friday, April 13, 2007

CSE 110 - LAB 6

num=int(raw_input("Enter a number greater than 2: "))
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
print "Primes Numbers: ", prime

CSE 110 - LAB 5

ans=["B","D","A","A","C","A","B","A","C","D","B","C","D","A","5","C","C","B","D","A"]
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
print
if correct > 15:
print "Yes you have passed the test. YAY!"
else:
print "Sorry, you have failed the test! HAR HAR YOU LOOSE!"
print
print "Number Correct " , correct
print "Number Wrong ", wrong

CSE 110 - LAB 4

start=int(raw_input("Please enter a starting value: "))
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

times = int(raw_input("How many times do you want to transcribe DNA into RNA? "))
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 New Mexico. In our class discussion, we also agreed upon the fact that it was also similar to the Odyssey by Homer, where Odysseus took a 10 year journey to get home.

The whole reason for their travels to the new world is because of religion and their faiths. They wanted to travel to Santa Fe to build a church and promote Christianity. They serve as missionaries of God. Apparently their faiths were so strong that they endured all that trouble and still wanted to start a church. Latour shows the most beliefs in his faiths, he does more than build a church, and he teaches people to grow things. Both Latour and Vaillant seem to have a connection where they have something the other doesn’t have and they need each other for support. I think this is why they are so close and when Vaillant dies, Latour seems to be looking for a replacement. These people have to feel very strong about their beliefs for them to go though all this just to promote Christianity, mainly the branch of Catholicism.

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 Conway family. Elmer, one of the members of the Conway’s family likes Joyce so Lou thinks of a plan to kill them both. This was a very well thought out plan where it involved the revenge that he had been looking for and to kill Joyce at the same time as well. Being the killer that he is, killing two people at a time is better than killing one at a time. So he carries out his plan did not completely kill Joyce, she fell into a coma instead of falling 6 feet under however, Lou was not aware of it at the time. He had also got some money from Elmer Conway before his murder and Lou had given some of it to Johnnie, Lou’s next alibi. The money was marked by Elmer so there was his first problem. Lou had given the marked money to Johnnie therefore Johnnie was taken in for interrogation. It was then a relief to Lou that he was the one chosen to interrogate Johnnie. His next smart move was to make himself seem more innocent by killing Johnnie making it seem if Johnnie had hung himself with a belt. Yet that was another witty escape from his murders. Lou’s tactics were very well planned there was no reason that anyone could suspect him of committing these murders.

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.