Farmer/Plant Exercise

Saturday, October 24, 2009
Emailed by Sir Paolo.
:">


public class Plant{
int height;
int value; //Selling price. Increases as plant grows
String type; //Type of Plant (ex. Apple, Banana, Carrot)

public Plant(){
type = "Generic Plant";
height = 0;
}

public Plant(int h){
height = h;
type = "Generic Plant";
}

public void grow(){
height = height + 10;
value = value + 100;
}

public void grow(int h){
height = height + h;
value = value + 10 * h;
}

public int getHeight(){
return height;
}

public int getValue(){
return value;
}

public String getType(){
return type;
}
}

public class FruitPlant extends Plant{
int numberOfFruit;
int fruitValue;

public FruitPlant(){
super();
type = "Generic Fruit Plant";
}

public void grow(){
super.grow();
numberOfFruit++;
}

public void grow(int i){
super.grow(i);
bearFruit();
}

public void bearFruit(){
numberOfFruit++;
}

public int harvestFruit(){
if(numberOfFruit>0){
numberOfFruit--;
return fruitValue;
} else {
return 0;
}
}

public int numberOfFruit(){
return numberOfFruit;
}
}





Read On 0 comments

Plant Java program

Thursday, October 22, 2009
public class Plant{
int height;
int value;
String type;

public Plant(){
height = 0;
type = "Generic Plant";
}

public Plant(int h){
height = h;
type = "Generic Plant";
}

public void Grow(){
height = height + 10;
value = value + 100;
}

public void Grow(int h){
height = height + h;
value = value + 100 * h;
}

public int getValue(){
return value;
}

public int getHeight(){
return height;
}

public String getType(){
return type;
}
}

para sa mga nakalimot o di nkapagsave sa mga USB (tulad ko kaya kailangan ko tuloy isipin kung anu nga ung program)
Read On 1 comments

Perio week is over!

Friday, October 16, 2009
... but school still isn't.

STR
- Methodology + Network Charts + Gantt's Chart due on Tuesday, October 20.

Bio
- Presentations about Body Defenses on Friday, October 23..
- GRADES! Get your grades!

English
- Board game due on Friday, October 23.
- Tuesday meeting will be for the board game. :>
- 3rd quarter's reading assignment is Memoirs of a Geisha by Arthur Golden.

PE
- Dance presentation will NOT be on the 23rd of October. Practice, people. ;]

Socsci
- OPTIONAL WORK!

Record “Urbanisasyong Paurong” from "The Correspondents by Karen Davila"
ANC - Saturday, 5 am
ANC - Sunday, 10:30 am


Health
- Baby book due on Monday, October 26.

Others
- HAPPY BIRTHDAY ELIHU! When's the Sr party? Halloween costumes! *rawr*
- Caf shifts! October caf signs. :>
Read On 0 comments

TKGW Reviewer

Sunday, October 11, 2009
You have to read the book, otherwise you won't understand about half of this thing. This won't even help you a bit if you didn't read the book.



Thank you, David. :)
Read On 1 comments

Perio Reminders!

Friday, October 09, 2009
Tuesday
- Chemistry

o Nomenclature
o Balancing Chemical Equations
o Predicting Products
o Stoichiometry
o Gas Laws

- English

o The Kitchen God's Wife

David is making chapter summaries. Wait for it. :>
Meanwhile, Sparknotes!


Thursday
- Math4

o Polynomial and Rational Functions
o Circles
o Trigonomentry

- Bio

o Levels of Biological Organization + Form Fits Function
o Multicellularity
o Plant and Animal Tissues
o Bioenergetics and Digestion
o Human Digestion
o Transport
o Circulation
o Respiration

Notebooks will be checked on Oct 14th as well. Please place them in the trays that will be provided for your class. I will be collecting the trays at 1030AM. Include the EOQReflections below, these count for 5 points of your NB score for the third collection:

1. What was your favorite topic this semester? Why?
2. Which misconceptions did you have that were corrected by discussions or activities?
3. What other questions/clarifications do you have on the topics discussed?
4. Which concepts were you able to appreciate/apply?
5. On a scale from 1-10 (10 being the highest), rate your contribution to your lab group and your contribution to your Mythbusters team. Justify your rating.



Thursday
- Physics

o Kinematics
o Force
o Vectors
o Friction
o Impulse and Momentum

- SocSci

o Geography of the World + Directions
o Greece
o Maya
o Geography: Mesoamericans
o Geography: Rome


STR
- Network charts! Make sure you've had your Activity Lists approved already.

Socsci
- Extra class during PE period.
I-ted shall rule.

Math4
- Long Quiz

Health
- Babybook due on the 26th!

English
- Board game due on the 23rd!
Read On 2 comments
Read On 1 comments

CS Additional Problems

Monday, October 05, 2009
Due Thursday night.
(by group)

I. Finish Card and Deck

You can download solutions from the web. Here and Here

II. Create a new class: Player

Attributes: Hand (array of cards)
Behaviors:
1.) Draw (object)
2.) Cards in hand (returns number of cards)
3.) toString (same as deck)
Read On 0 comments

Chem2

Recent Entries

Recent Comments