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
Saturday, August 27, 2011
Exploratory Research Methodology Example
Monday, August 22, 2011
ICT 203 - Q1d (Foundations in Modern System Design)
For OrdinaryMember class:
public double computeFee() {
double payment = 0;
if (getIsOverseas())
payment = getMembershipFee() * 0.5;
else
payment = getMembershipFee();
return payment;
}
For AssociateMember class:
public double computeFee() {
double payment = 0;
if (getIsOverseas())
payment = getMembershipFee() * 0.5;
else
payment = getMembershipFee();
payment = payment + magazineCharge;
return payment;
}
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>>

