Question
life is what you make of it, it's not how the world views you but rather, how you view the world that makes life more interesting
Monday, August 22, 2011
ICT 203 - Q1c
Question
ICT 203 - Q1a ( Foundations in Modern System Design)
Question
ICT203 - Foundations in Modern System Design Question 1
(b) Draw a UML class diagram to depict the given information, showing the attributes for each class, and the class hierarchy. (answer)
(c) Explain how you would record the fact that an associate member needs to pay for the magazine. State also the class or classes concerned, and the attributes and/or methods added. (answer)
(d) Write Java code to define the classes and hierarchy you had identified above. In each class, include the attributes as instance variables of suitable data types, and appropriate constructor(s) that initialize(s) the instance variables. Note that each subclass should have its own implementation of the computeFee() method. (answer)
(e) (i) Explain how you might write the computeFee() method for the superclass.
(ii) What is the advantage of having this method in the superclass?
Related Posts:
Saturday, August 20, 2011
Manhwa: Cutie Boy by Hwang Mi-ri
Cutie Boy is another of Hwang Mi-ri’s creations spanning 8 volumes. The story revolves around Lee Han-Ah, a girl who happens to be the leader of her high school gang and her mishaps at her attempts to look for a pretty boyfriend.
When Han-Ah was in grade school, she was bullied by a boy called Yoo-Min. Yoo-Min had made fun of her and commented that she had a “wide and flat” butt; it left a scar in her heart, not knowing that it was actually Yoo-Min’s method of expressing his affection. Now in high school, Han-Ah has become the leader of the gang at her school. Although she is not a talented fighter, she wins fights by using the ‘innocent’ girl act. Although she is not that enthusiastic about her new role, her friends push her to do so as she is seen as their only hope. As her school is an all-girls school, the girls were once bullied by the boys from a nearby boy’s school, until Han-Ah became the captain and started to win fights.
On day, Han-Ah meets Yoo-Min on the streets and starts dating him without knowing that he is the same Yoo-Min that had bullied her in grade school. She soon finds out that his true identity and becomes scared of him. However, after a series of encounters with Yoo Min, she begins to realize that he truly cares for her. During the exams terms Yoo-Min takes her to meet his family, and his grandmother tells him she won’t allow him to be with Han-Ah because her narrow hip is not suitable for bearing children (the root of all the tormenting). They start going out again but due to some misunderstanding, Han-Ah becomes Mi Yoo’s ‘girlfriend’, because he realizes she is his ideal type of woman...Read More>>
Saturday, July 30, 2011
Fake Contact Lenses
In recent years, in an attempt to cut costs and earn more profit, people have devised ingenious yet harmful products. From highly sought after IT gadgets (i.e. Apple iPhone), branded goods, all the way down to daily necessities (i.e. milk, eggs) and children’s toys. There’s just about a counterfeit for almost everything available in the (black) market.
Now there are even counterfeit contact lenses, which are harmful to the eyes. For the first time in Singapore, the Health Sciences Authority (HSA) has confiscated over 100 boxes of counterfeit colored contact lenses from legitimate suppliers, such as licensed optical shops. The confiscated boxes of counterfeit lenses were obtained after raiding five optical shops across the island. Currently, more than 10 people are also being questioned in connection to the case.
To date, the Health Sciences Authority (HSA) has reported that one anonymous consumer, who is in her 30s, removed the lenses immediately when she could not close her eyes after wearing them.
According to CIBA VISION, this is...Read more >>
Smile, Honey
Smile, Honey is a family Korean drama that revolves around 2 families and their interactions. First, there is the Suh family, who owe their riches and prestige to the now-deceased CEO/father/grandfather. There are 5 members in the Suh family: Suh Jung-gil who is the head of the family, his wife Ju-hee, Sung joon the eldest son who went to U.S. to become a pro golfer, Jung-Kyung the second child in the family and Jung-in, the youngest daughter.Jung-gil is a snobbish man and looks down on people who have no money, his wife is more of an air-head that only cares about her nails and feels faint at the slightest sign of trouble of hardwork.
Bascially, the whole Suh family, except for Jung-kyung are snotty and out of touch with reality. Jung-kyung is the only one in her family that is rational. However, she is a little too rational and practical; that it would seem that she lacks emotion: she’s cool, professional, and detached. Her attitude causes strain to her relationship with her younger sister Jung-in. Jung-kyung chooses to focus on her career and at the start of the show, interacts or spends very little time with her family, preferring to stay at the hospital than go home. She does not think too highly of her younger sister who is the princess of the family and only dreams about getting married into a good rich family.
Then there is the Kang family. Kang Man-bok (Grandpd Kang) has been the driver to the Suh family since Jung-gil’s father’s time. Jung-gil is rude to Man-bok and disrespectful to him; he even fires Man-bok one morning because he felt that Man-bok was nagging too much. Gandpa Kang is not necessarily the lead character but certainly the central one who holds the rest together...Read more>>

