CD + Player (Incomplete)
Friday, September 11, 2009
public class CD
{
// attributes
int tracks;
String name;
/**
* Constructor for objects of class CD
*/
public CD(String n, int x)
{
name = n;
tracks = x;
}
public int getTrack(){
return tracks;
}
}
public class CDplayer {
String status;
int track_num = 1;
CD myCD;
public void load(CD cd1){
myCD = cd1;
}
public void play(){
status = "play";
}
public void forward(){
track_num = track_num + 1;
if(track_num > myCD.getTrack()){
track_num = 1;
}
}
}
{
// attributes
int tracks;
String name;
/**
* Constructor for objects of class CD
*/
public CD(String n, int x)
{
name = n;
tracks = x;
}
public int getTrack(){
return tracks;
}
}
public class CDplayer {
String status;
int track_num = 1;
CD myCD;
public void load(CD cd1){
myCD = cd1;
}
public void play(){
status = "play";
}
public void forward(){
track_num = track_num + 1;
if(track_num > myCD.getTrack()){
track_num = 1;
}
}
}
Weekend Reminders (again)!
Friday, September 11, 2009
Walalang. I'm posting from the Robolab. XD
STR
- 3 RRL sources due on Monday, September 14.
- Individual RRL write-up due on Wednesday, September 16.
Bio
- Quiz on Human Circulation next meeting.
- Notebook to be submitted sometime this week.
- Answer this question: Why are veins colored blue? on your notebook and get 1 recit point.
- Write down good questions on your notebook and get corresponding recit points.
Fil
- Next reporters: PLES and PRECLARO
- Short story due on Friday, October 2.
Math
- Longtest about Circles on Tuesday, September 15.
- HW!
Chem
- Probset on Wednesday, September 16.
- Longtest on Tuesday, September 22.
Eng
- Essay about The Tao Te Ching due on Tuesday, September 15.
- Submit tomorrow and you still get a bonus point.
CompSci
- Practical test (by pair) on Thursday, September 24.
SocSci
- HW on Chapter 3-4 (xeroxed)
-Did Micah distribute the papers? Click here to download. Thanks to Beryllium for this. :)
- Fillers should be PINK.
Others
- Retreat payments due on Friday, September 18.
- Bacon tomorrow from 8:30 onwards!
- ACLE talk from 10:30-12:00
- SR PARTEY FROM 12:00 ONWARDS.
STR
- 3 RRL sources due on Monday, September 14.
- Individual RRL write-up due on Wednesday, September 16.
Details to be updated...
Email submissions (achupungco@gmail.com) only!
Filename: Sr-XX RRL(lastname)
Bio
- Quiz on Human Circulation next meeting.
- Notebook to be submitted sometime this week.
- Answer this question: Why are veins colored blue? on your notebook and get 1 recit point.
- Write down good questions on your notebook and get corresponding recit points.
Fil
- Next reporters: PLES and PRECLARO
- Short story due on Friday, October 2.
Math
- Longtest about Circles on Tuesday, September 15.
- HW!
1.) Find the equation of the circle touching the line x-2y=3 at (-1, -2) and having r2 = 5
2.) Find an equation of the circle concentric with the circle x2+y2-6x+2y-15 = 0 and tangent to the line 5x+12y+10 = 0
Chem
- Probset on Wednesday, September 16.
- Longtest on Tuesday, September 22.
Eng
- Essay about The Tao Te Ching due on Tuesday, September 15.
- Submit tomorrow and you still get a bonus point.
CompSci
- Practical test (by pair) on Thursday, September 24.
SocSci
- HW on Chapter 3-4 (xeroxed)
-
- Fillers should be PINK.
Others
- Retreat payments due on Friday, September 18.
- Bacon tomorrow from 8:30 onwards!
- ACLE talk from 10:30-12:00
- SR PARTEY FROM 12:00 ONWARDS.
Circle Code
Thursday, September 10, 2009
import java.util.*;
public class Circle {
//Attributes
Point center;
double radius;
public Circle(){
center = new Point();
radius = 1;
}
public Circle(double x, double y, double r){
center = new Point(x,y);
radius = r;
}
public Circle(Point p, double r){
radius = r;
center = p;
}
public Circle(LineSegment diameter){
center = diameter.midpoint();
radius = diameter.length()/2;
}
public String getEquation(){
String s = "(x -" + center.getX() + ")^2";
s = s + " + (y -" + center.getY() + ")^2";
s = s + " = " + radius* radius;
return s;
}
}
public class Circle {
//Attributes
Point center;
double radius;
public Circle(){
center = new Point();
radius = 1;
}
public Circle(double x, double y, double r){
center = new Point(x,y);
radius = r;
}
public Circle(Point p, double r){
radius = r;
center = p;
}
public Circle(LineSegment diameter){
center = diameter.midpoint();
radius = diameter.length()/2;
}
public String getEquation(){
String s = "(x -" + center.getX() + ")^2";
s = s + " + (y -" + center.getY() + ")^2";
s = s + " = " + radius* radius;
return s;
}
}
ACLE reminders
Wednesday, September 09, 2009
David here. I know I should make announcements like this in class, but I don't have much of a voice and we don't really seem to get the chance. :-j
This saturday, should the weather get a grip, the ACLE will continue. We're all encouraged (and by that I mean required) to attend. The activity is from 7:30 to 3pm.
Basically, it'll be like a Bazaar/Expo. Companies and Organizations will be visiting to show off their products and relate their success stories.
Sign-up for a particular talk starts tomorrow, Thursday, from 10:50 to 12:50 at the second floor area. On Saturday, we are required to attend the talk we signed up for at 10:30, until 12:00. From 12:00 onwards it's free-for-all, so we can go around.
You have the option of sampling their wares. 10% of all the money gathered from sold products goes to the Pisay outreach, which the second years are handling. Try and buy a couple of things to help them out, okay? :D
No word yet on attire. I'm guessing uniform, so have extra polos/blice and pants/skirts ironed out.
Thanks. And again, the outreach. /:)
PS. Will someone please give Kent a xerox of the class directory? :-j
PPS. CLASS FUNDS, KIDS. :>
This saturday, should the weather get a grip, the ACLE will continue. We're all encouraged (and by that I mean required) to attend. The activity is from 7:30 to 3pm.
Basically, it'll be like a Bazaar/Expo. Companies and Organizations will be visiting to show off their products and relate their success stories.
Sign-up for a particular talk starts tomorrow, Thursday, from 10:50 to 12:50 at the second floor area. On Saturday, we are required to attend the talk we signed up for at 10:30, until 12:00. From 12:00 onwards it's free-for-all, so we can go around.
You have the option of sampling their wares. 10% of all the money gathered from sold products goes to the Pisay outreach, which the second years are handling. Try and buy a couple of things to help them out, okay? :D
No word yet on attire. I'm guessing uniform, so have extra polos/blice and pants/skirts ironed out.
Thanks. And again, the outreach. /:)
PS. Will someone please give Kent a xerox of the class directory? :-j
PPS. CLASS FUNDS, KIDS. :>
Intrams is over.
Saturday, September 05, 2009
... and school is not.
WALANG PASOK SA MONDAY!
Sad ako. :(
English
- Group Tasks!
- The scribe will read the passage first, and the leader will do the actual task.
- Essay due on September 15.
STR
- 2 more RRL sources due on Wednesday, September 9.
Physics
- Part 2 of the LT about Projectile Motion and Friction on Thursday, September 10.
The list is becoming shorter each week. :|
I have a bad feeling my memory's melting away...
Others
- Party on the 18th!
- THE LAYOUT IS HALF-FINISHED NA. =)) Look forward to your pics, people. :-"
- Tell me, or update the list yourself, kung may kulang.
Sad ako. :(
English
- Group Tasks!
- The scribe will read the passage first, and the leader will do the actual task.
- Essay due on September 15.
Choose one of the poems from Lao Tzu's Tao Te Ching.
In 300 (±10%) words, interpret the poem and relate it to your personal life or to the society. Provide a title for the essay.
Name and Section on the upper left hand corner and the date on the upper right hand corner.
Word count at the end of the essay.
Font: Arial, Garamond, Times New Roman, Bookman, Antiqua
Font Size: 12
Double-spaced.
STR
- 2 more RRL sources due on Wednesday, September 9.
Physics
- Part 2 of the LT about Projectile Motion and Friction on Thursday, September 10.
The list is becoming shorter each week. :|
I have a bad feeling my memory's melting away...
Others
- Party on the 18th!
- THE LAYOUT IS HALF-FINISHED NA. =)) Look forward to your pics, people. :-"
- Tell me, or update the list yourself, kung may kulang.
CS Point and Line Segments Program
Thursday, September 03, 2009
In-email ni Sir Paolo, kasi hindi in-email ni Domz. :>
import java.util.*;
public class Point {
//ATTRIBUTES
double x;
double y;
public Point(){
x = 0;
y = 0;
}
public Point(double a, double b){
x = a;
y = b;
}
public double getX(){
return x;
}
public double getY(){
return y;
}
public void move(double a,double b){
x = a;
y = b;
}
public double distanceTo(Point p){
double distance =
Math.pow(x - p.getX(),2) +
Math.pow(y - p.getY(),2);
return Math.sqrt(distance);
}
public double distanceTo(double a,double b){
double distance =
Math.pow(x - a,2) +
Math.pow(y - b,2);
return Math.sqrt(distance);
}
}
public class LineSegment {
//ATTRIBUTES
Point endpoint1;
Point endpoint2;
public LineSegment(Point a, Point b){
endpoint1 = a;
endpoint2 = b;
}
public double length(){
return endpoint2.distanceTo(endpoint1);
}
public Point midpoint(){
double x =
(endpoint1.getX() + endpoint2.getX())/2;
double y =
(endpoint1.getY() + endpoint2.getY())/2;
Point midpoint = new Point(x,y);
return midpoint;
}
public double slope(){
double rise =
endpoint1.getY() - endpoint2.getY();
double run =
endpoint1.getX() - endpoint2.getX();
return rise/run;
}
public String getLine(){
String s =
"Y = ";
s = s + slope() + "(X) - ";
s =s + (slope()*endpoint1.getX() + endpoint1.getY());
return s;
}
}
INTRAMS REMINDERS
Thursday, September 03, 2009
David here. Let's cut to the chase.
1. When you arrive in school, you're supposed to be in UNIFORM. We can only change into sports attire (black shirt and shorts/pants) at 12:45.
2. Strontium - final practice to be held at the gym parking lot at roughly 7am. Intrams starts at 12:45, in the field (good weather) or in the gym (bad weather).
3. PLAYERS need to fill out a PARENT'S CONSENT FORM. For dormers, you might've already guessed that it's the dorm manager's job to sign you up.
4. To use the bathroom, it appears that we need to ask permission. How awkward. T_T
5. In good weather, there will be four games: basketball (inside court for girls and outside for guys), soccer (field), volleyball (near or around parking lots) and darts (flob). For bad weather? There's supposed to be some sort of separate paper with details, but they didn't give me anything.
6. Domain for intrams: x/x is an element of the set containing "field", "gym", and "shb first floor bathrooms". Caf trips are limited to eating. Speaking of which, there are going to be concessionaries and chit booths for food.
CHANTS:
Arvin x3
Siya ay captain namin
Gino x3
Ay naku napakagwapo @_@
Who's gonna win this war?
Sr!
Who's gonna raise the bar?
Sr!
Who's gonna go real far?
Sr!
Who's gonna rock?
We are!
Sr!
camia x3
kahit kami'y puti
sa loob namin
itim pa rin kami
opal x3
kami'y manunupalpal
iTeam x3
kami ay magiling
kahit mali ang spelling
Si Sir Duli ay maka-iTeam
1. When you arrive in school, you're supposed to be in UNIFORM. We can only change into sports attire (black shirt and shorts/pants) at 12:45.
2. Strontium - final practice to be held at the gym parking lot at roughly 7am. Intrams starts at 12:45, in the field (good weather) or in the gym (bad weather).
3. PLAYERS need to fill out a PARENT'S CONSENT FORM. For dormers, you might've already guessed that it's the dorm manager's job to sign you up.
4. To use the bathroom, it appears that we need to ask permission. How awkward. T_T
5. In good weather, there will be four games: basketball (inside court for girls and outside for guys), soccer (field), volleyball (near or around parking lots) and darts (flob). For bad weather? There's supposed to be some sort of separate paper with details, but they didn't give me anything.
6. Domain for intrams: x/x is an element of the set containing "field", "gym", and "shb first floor bathrooms". Caf trips are limited to eating. Speaking of which, there are going to be concessionaries and chit booths for food.
CHANTS:
Arvin x3
Siya ay captain namin
Gino x3
Ay naku napakagwapo @_@
Who's gonna win this war?
Sr!
Who's gonna raise the bar?
Sr!
Who's gonna go real far?
Sr!
Who's gonna rock?
We are!
Sr!
camia x3
kahit kami'y puti
sa loob namin
itim pa rin kami
opal x3
kami'y manunupalpal
iTeam x3
kami ay magiling
kahit mali ang spelling
Si Sir Duli ay maka-iTeam