Today reached school quite early, everyone discussing about the results of Creative Concept UT 1.
I got B+, 22/28
The science lesson was a disaster because although I can do most of the problems, teacher said I did wrong for average =.=
So I simply went off to take my ITE certificate
Also ate dinner with Muffin, nothing much nice in school today x.x
Tuesday, July 3, 2012
Monday, July 2, 2012
Monday, 2nd July 2012
Father's taxi broke down yesterday I think
Had to take bus to school today, wasn't late for class
Today changed teacher for Art of Story, he didn't seems as strict as he looks.
Today's lesson, have to watch 5 short videos
Select 1 of the videos, find out the theme and justification of the theme.
1 of my team mate managed to finish most of the presentation, I only need to edit a few things to make it look nicer.
Had to take bus to school today, wasn't late for class
Today changed teacher for Art of Story, he didn't seems as strict as he looks.
Today's lesson, have to watch 5 short videos
Select 1 of the videos, find out the theme and justification of the theme.
1 of my team mate managed to finish most of the presentation, I only need to edit a few things to make it look nicer.
Sunday, July 1, 2012
Saturday, 30th June 2012 to Sunday, 1st July 2012
Woke up at 3+ pm cause overslept
Met up with Dong Wen to go tampines, then met with Darren
In the end, Zes also joined us.
Went to Pasir Ris park to rent bicycle over night, paid $20 lol
Feel like buying a bike when rent a bike so expensive x.x
Roamed around the beach and park area randomly until night, nothing much actually lol
Went to Darren's house at around 9 pm I think
Went out at around 11 pm, eat carrot cake lolz
Played 2 rounds of mahjong until around 3 or 4 am, I lost nearly $30
Realized my mahjong very weak now lol, need practice during holidays x.x
Went out at 7 am, ate big breakfast with them at pasir ris area
Also to return the bikes
Reached home around 11 am, went out to meet Muffin at her area
Nowhere else to go, went to my house and slack
Later on, sent her back to her area and ate salmon pepper lunch for dinner.
Bought a Zinc bag for her after dinner, also bought a small pouch for my HDD
Giving her an early 2nd month present
Met up with Dong Wen to go tampines, then met with Darren
In the end, Zes also joined us.
Went to Pasir Ris park to rent bicycle over night, paid $20 lol
Feel like buying a bike when rent a bike so expensive x.x
Roamed around the beach and park area randomly until night, nothing much actually lol
Went to Darren's house at around 9 pm I think
Went out at around 11 pm, eat carrot cake lolz
Played 2 rounds of mahjong until around 3 or 4 am, I lost nearly $30
Realized my mahjong very weak now lol, need practice during holidays x.x
Went out at 7 am, ate big breakfast with them at pasir ris area
Also to return the bikes
Reached home around 11 am, went out to meet Muffin at her area
Nowhere else to go, went to my house and slack
Later on, sent her back to her area and ate salmon pepper lunch for dinner.
Bought a Zinc bag for her after dinner, also bought a small pouch for my HDD
Giving her an early 2nd month present
Saturday, June 30, 2012
Friday, 29th June 2012
Today went to school, was still wondering what kinda activities awaiting for me...
I feel stupid after the activities cause the available activities are :
- Animal Sounds
- Debate
- Blindfold
- Run around school
i) The animal sounds part is, everyone take lottery with slip of papers. The paper got indicate which animal sound to make, everyone need to make the sounds to form their team.
ii) Debate is about an article, girl 16~17 years old slept with 48 men for 1 year (2010 to 2011). Is it right to reveal her name, since 48 men names was being exposed?
iii) Blindfold is just random people teamed up, and 1 side will get blindfolded. The other person will guide the blindfolded through a path, obstacles are just papers. I find it weird when my facililator blindfolded me in a way that I can see the floor clearly lol, so I managed to clear the stage without any troubles.
iv) Run around school, is just some sort of treasure hunt. Was assigned a picture of a location, need find the location and take picture in the exact same way. Beside being last team, facililator also misguided us, so we ended up last team. But never mind, lucky no punishment, or else I complain lol.
Although completed the lame activities, but still need to do reflection journal, write about what skills being used x.x
Wrote 600 words in my reflection journal.
Damn, that's really long and tiring. Made me hungry after writing, and also thinking, so much
We were released at 11 am, but Art of Story UT starts at 4.45 pm. Had like 5 hours lol
In the end, we just went back to class to watch Finding Nemo and also Woman in Black.
Slacked at class until 4 and everyone went to their respective UT classrooms.
I managed to do the UT quite fast, spent only half of the time, although I wrote little.
But never mind, I will see how strict they mark first ~.~
Not much new mangas for this week, went to buy a present for a malaysian classmate instead. Didn't give him present for his birthday, just a cheap one anyway.
I feel stupid after the activities cause the available activities are :
- Animal Sounds
- Debate
- Blindfold
- Run around school
i) The animal sounds part is, everyone take lottery with slip of papers. The paper got indicate which animal sound to make, everyone need to make the sounds to form their team.
ii) Debate is about an article, girl 16~17 years old slept with 48 men for 1 year (2010 to 2011). Is it right to reveal her name, since 48 men names was being exposed?
iii) Blindfold is just random people teamed up, and 1 side will get blindfolded. The other person will guide the blindfolded through a path, obstacles are just papers. I find it weird when my facililator blindfolded me in a way that I can see the floor clearly lol, so I managed to clear the stage without any troubles.
iv) Run around school, is just some sort of treasure hunt. Was assigned a picture of a location, need find the location and take picture in the exact same way. Beside being last team, facililator also misguided us, so we ended up last team. But never mind, lucky no punishment, or else I complain lol.
Although completed the lame activities, but still need to do reflection journal, write about what skills being used x.x
Wrote 600 words in my reflection journal.
Damn, that's really long and tiring. Made me hungry after writing, and also thinking, so much
We were released at 11 am, but Art of Story UT starts at 4.45 pm. Had like 5 hours lol
In the end, we just went back to class to watch Finding Nemo and also Woman in Black.
Slacked at class until 4 and everyone went to their respective UT classrooms.
I managed to do the UT quite fast, spent only half of the time, although I wrote little.
But never mind, I will see how strict they mark first ~.~
Not much new mangas for this week, went to buy a present for a malaysian classmate instead. Didn't give him present for his birthday, just a cheap one anyway.
Thursday, June 28, 2012
Worksheet for Programming Week 08
# For Loop
for a in range(1,10,2):
print `a` + ": hello"
# For Loop / List
from random import randint
randomList = []
for x in range(10):
randomList.append(randint(1,100))
if randomList[x] % 2 != 0:
print randomList[x]
print randomList
# List / Sum
def totalUp():
listOfNum = [4,3,6,2]
total = sum(listOfNum)
return total
print totalUp()
# Functions
def areaOfRect(w,h):
area = w * h
return area
print areaOfRect(5,10)
# Function / List
def printList(x):
a = x[0]
b = x[-1]
c = "First element is " + `a` + ", while Last element is " + `b`
return c
print printList([154, 198, 123, 136, 239, 257, 207, 262, 178, 228])
# Function / List II
def sumList(x):
a = x[0]
b = x[-1]
c = "The sum of " + `a` + " and " + `b` + " is " + `(a + b)`
return c
print sumList([193, 220, 113, 248, 132, 289, 188, 124, 163, 255])
# List / Maximum
def findMax(x):
maxNum = x[0]
for a in range(len(x)):
if x[a] > maxNum:
maxNum = x[a]
return maxNum
print findMax([171, 135, 160, 295, 105, 253, 169, 224, 298, 139])
# List / Maximum by 4
def findMaxBy4(x):
maxNum = x[0]
for a in range(len(x)):
if x[a] % 4 == 0:
if x[a] > maxNum :
maxNum = x[a]
return maxNum
print findMaxBy4([233, 135, 109, 117, 300, 268, 185, 259, 298, 171])
# List / Maximum / Minimum
def diff(x):
maxNum = x[0]
for a in range(len(x)):
if x[a] > maxNum:
maxNum = x[a]
minNum = x[0]
for a in range(len(x)):
if x[a] < minNum:
minNum = x[a]
difference = maxNum - minNum
return `maxNum` + " - " + `minNum` + " = " + `difference`
print diff([110, 116, 209, 163, 287, 222, 293, 268, 275, 213])
for a in range(1,10,2):
print `a` + ": hello"
# For Loop / List
from random import randint
randomList = []
for x in range(10):
randomList.append(randint(1,100))
if randomList[x] % 2 != 0:
print randomList[x]
print randomList
# List / Sum
def totalUp():
listOfNum = [4,3,6,2]
total = sum(listOfNum)
return total
print totalUp()
# Functions
def areaOfRect(w,h):
area = w * h
return area
print areaOfRect(5,10)
# Function / List
def printList(x):
a = x[0]
b = x[-1]
c = "First element is " + `a` + ", while Last element is " + `b`
return c
print printList([154, 198, 123, 136, 239, 257, 207, 262, 178, 228])
# Function / List II
def sumList(x):
a = x[0]
b = x[-1]
c = "The sum of " + `a` + " and " + `b` + " is " + `(a + b)`
return c
print sumList([193, 220, 113, 248, 132, 289, 188, 124, 163, 255])
# List / Maximum
def findMax(x):
maxNum = x[0]
for a in range(len(x)):
if x[a] > maxNum:
maxNum = x[a]
return maxNum
print findMax([171, 135, 160, 295, 105, 253, 169, 224, 298, 139])
# List / Maximum by 4
def findMaxBy4(x):
maxNum = x[0]
for a in range(len(x)):
if x[a] % 4 == 0:
if x[a] > maxNum :
maxNum = x[a]
return maxNum
print findMaxBy4([233, 135, 109, 117, 300, 268, 185, 259, 298, 171])
# List / Maximum / Minimum
def diff(x):
maxNum = x[0]
for a in range(len(x)):
if x[a] > maxNum:
maxNum = x[a]
minNum = x[0]
for a in range(len(x)):
if x[a] < minNum:
minNum = x[a]
difference = maxNum - minNum
return `maxNum` + " - " + `minNum` + " = " + `difference`
print diff([110, 116, 209, 163, 287, 222, 293, 268, 275, 213])
Reflection Journal for Programming Week 08
The code should be continuous...
1) Create a list named 'numList' with the following numbers: 4, 7, 9, 0, 9, 7, 43, 2, 6, 87
2) Print out the last element in 'numList'
3) Write a loop that prints out ALL the elements in numList (first number printed must be 4)
4) Write a loop that prints out ALL the elements in numList in REVERSE ORDER (first number printed must be 87)
5) Write a loop that prints out all the numbers in numList that are GREATER THAN 10
The code :
numList = [4, 7, 9, 0, 9, 7, 43, 2, 6, 87]
print "This is last element " + `numList[-1]`
print ' '
for x in range(len(numList)):
print numList[x]
print ' '
numList.reverse()
for x in range(len(numList)):
print numList[x]
print ' '
for x in range(len(numList)):
if numList[x] > 10:
print "Greater than 10 got " + `numList[x]`
1) Create a list named 'numList' with the following numbers: 4, 7, 9, 0, 9, 7, 43, 2, 6, 87
2) Print out the last element in 'numList'
3) Write a loop that prints out ALL the elements in numList (first number printed must be 4)
4) Write a loop that prints out ALL the elements in numList in REVERSE ORDER (first number printed must be 87)
5) Write a loop that prints out all the numbers in numList that are GREATER THAN 10
The code :
numList = [4, 7, 9, 0, 9, 7, 43, 2, 6, 87]
print "This is last element " + `numList[-1]`
print ' '
for x in range(len(numList)):
print numList[x]
print ' '
numList.reverse()
for x in range(len(numList)):
print numList[x]
print ' '
for x in range(len(numList)):
if numList[x] > 10:
print "Greater than 10 got " + `numList[x]`
Archery Score
[Original]
from random import randint
def getScore():
rdmScore = []
for a in range(10):
rdmScore.append(randint(100,300))
return rdmScore
rdmScore = getScore()
def lowestScore():
lowest = min(rdmScore)
return lowest
def highestScore():
highest = max(rdmScore)
return highest
def averageScore():
total = sum(rdmScore)
avg = float(total)/float(len(rdmScore))
return avg
print "Score (10 games): " + `rdmScore`
print "Average Score : " + `averageScore()`
print "Lowest Score : " + `lowestScore()`
print "Highest Score : " + `highestScore()`
[With Bonus]
from random import randint
def getScore():
rdmScore = []
for a in range(10):
rdmScore.append(randint(100,300))
return rdmScore
scoreList = getScore()
def lowestScore(scoreList):
lowest = min(scoreList)
return lowest
def highestScore(scoreList):
highest = max(scoreList)
return highest
def averageScore(scoreList):
total = sum(scoreList)
avg = float(total)/float(len(scoreList))
return avg
players = []
for i in range(5):
players.append(getScore())
for i in range(len(players)):
print "Player: " + `i+1`
print "Score (10 games): " + `players[i]`
print "Average Score : " + `averageScore(players[i])`
print "Highest Score : " + `highestScore(players[i])`
print "Lowest Score : " + `lowestScore(players[i])`
worst = 0
worstScore = averageScore(players[0])
for i in range(1,len(players)):
if averageScore(players[i]) < worstScore:
worst = i
worstScore = averageScore(players[i])
print "Worst player is : Player " + `worst+1`
print "His average score is " + `worstScore`
best = 0
bestScore = averageScore(players[0])
for i in range(1,len(players)):
if averageScore(players[i]) > bestScore:
best = i
bestScore = averageScore(players[i])
print "Best player is : Player " + `best+1`
print "His average score is " + `bestScore`
Thursday, 28th June 2012
Ate maggie mee with 2 eggs at 2+ am, too hungry after do programming lol
Brain encountered some logic errors, not sure how to solve
Think I too tired today also x.x
Managed to solve today's problem statement de bonus part by myself
After a long time though
I find it really stupid if someone wants me to approach the person and understand the person from just facial expressions, how the hell do I know
Brain encountered some logic errors, not sure how to solve
Think I too tired today also x.x
Managed to solve today's problem statement de bonus part by myself
After a long time though
I find it really stupid if someone wants me to approach the person and understand the person from just facial expressions, how the hell do I know
Wednesday, June 27, 2012
Display Month Function
month = raw_input("Enter the number of month")
try:
month = int(month) - 1
if month < 0 or month >= 12:
print "Please enter between 1 to 12"
exit()
except:
print "Error"
exit()
def displayMonth(month):
listOfMonth = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
return listOfMonth[month]
print displayMonth(month)
Purpose of this code:
- Calculate the number of month and display the month's name
* Plans to take in day & year of birthday
* To calculate horoscope and chinese zodiac
try:
month = int(month) - 1
if month < 0 or month >= 12:
print "Please enter between 1 to 12"
exit()
except:
print "Error"
exit()
def displayMonth(month):
listOfMonth = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
return listOfMonth[month]
print displayMonth(month)
Purpose of this code:
- Calculate the number of month and display the month's name
* Plans to take in day & year of birthday
* To calculate horoscope and chinese zodiac
Subscribe to:
Posts (Atom)

