Vacation Reminders

Friday, December 25, 2009
Woohoo! Bakasyon na, pero may school work pa rin. Actually matagal nang bakasyon. :-j

Paki-add nalang yung deadline dates. Hi, David. :>

Health

- 20 minute video about Alchohol and Smoking

Bio
- Mythbusters output

Compsci
- Application/Game Project (by pair)

Chem
- YMSAT!

Is there anything else? :))
Paki-dagdag nalang.
I'm still in vacation mood. :P
Read On 1 comments

CHRISTMAS PARTY, GRENADES

Wednesday, December 16, 2009
GUYS :> Christmas party and sleepover details. Like woah.

FOR FRIDAY. After Paskorus, there's some time because Ma'am Kiel has a previous engagement to attend to. Those in the mood and with permission to sleepover at her place must wait until around 8pm to proceed there (preferrably in carpool groups). In the meanwhile, here are some suggestions: Christmas shopping, UP Lantern Parade, watch a movie, study for next year. :))

Then. When we get there, however many we are, we.... watch a movie (sequel to Drag Me to Hell --> Drag Me to Physics, and the companion movie Drag Me to Chem), play poker, I suppose, and maybe go caroling. Maybe.

Overnight, and then we trek together to Pisay (unless you want to make quick trips home to get ready for Saturday). THERE IS NO OFFICIAL TIME ON SATURDAY, but our class party is meant to be at 12nn. So in the meanwhile, those who slept over and consequently came to Pisay early may go to Trinoma for more shopping. Or to bring back the food.

Which brings us to the party. For food, we're going to have the Boodle/Poodle/Moodle/Buddle/whatever style feast, which means banana leaves and your shiny hands. \:D/ Someone please figure out the banana leaf details or something @-)

Then we will most likely have another icing fight (bring extra clothes and towels for clean up), and maybe a water balloon fight. We haven't worked it out yet, okay :-j Maybe it'll be a surprise!!! :))

We end in the afternoon or early evening.

COMMENT BELOW IF YOU ARE ATTENDING THE SLEEPOVER AND IF YOU ARE GOING TO BE PRESENT AT THE PARTY. ANYTHING YOU CAN SUGGEST OR CONTRIBUTE WILL BE WELL APPRECIATED, LIKE WOAH.
Read On 2 comments

AT Machine

Wednesday, December 16, 2009
import java.util.*;
import java.io.*;

public class ATM {
Vector balance;
Vector name;
Vector password;
File file = new File("data.txt");

public ATM(){
balance = new Vector();
name = new Vector();
password = new Vector();
//init();
}

public void init(){
int option = 0;

loadFile();

Scanner in = new Scanner(System.in);

do {
System.out.println("[1] Create new Account");
System.out.println("[2] Access Existing Account");
System.out.println("[3] Exit");

System.out.print("> ");

String input = in.nextLine();

try {
option = Integer.parseInt(input);
} catch (Exception e){
option = 0;
}


if(option > 3 || option < 1){
System.out.println("Invalid input.");
continue;
}

if(option == 1){
create();
}

if(option == 2){
open();
}
} while (option != 3);

in.close();
writeFile();
}

private void create(){
Scanner in = new Scanner(System.in);

System.out.print("Enter Account Name: ");

String actname = in.nextLine();

if(accountSearch(actname)>=0){
System.out.println("Account Already Exists.");
} else {

name.add(actname);

System.out.print("Enter Password: ");
password.add(in.nextLine());

balance.add(0.0);
System.out.println("Account " + name.lastElement() + " created!");
}

in.close();
}

private void open(){
Scanner in = new Scanner(System.in);

System.out.print("Enter Account Name: ");

int accountNumber = accountSearch(in.nextLine());

if(accountNumber >= 0){
System.out.print("Enter Password: ");
if(password.get(accountNumber).equals(in.nextLine())){

int option = 0;
double amount = 0;

do {
System.out.println("[1] Deposit Funds");
System.out.println("[2] Withdraw Funds");
System.out.println("[3] Balance Inquiry");
System.out.println("[4] Exit");

System.out.print("> ");
option = in.nextInt();

if(option > 4 || option < 1){
System.out.println("Invalid input.");
continue;
}

if(option == 1){
deposit(accountNumber);
}

if(option == 2){
withdraw(accountNumber);
}

if(option == 3){
balance(accountNumber);
}
} while (option != 4);
} else {
System.out.println("Account and password does not match.");
}
} else {
System.out.println("Account Name does not exist!");
}


in.close();
}

private void deposit(int accountNumber){
double amount = 0;
Scanner in = new Scanner(System.in);

System.out.print("Enter amount to deposit: ");
String amt = in.nextLine();

try {
amount = Double.parseDouble(amt);
} catch (Exception e){
System.out.println("Invalid input.");
}

double bal = balance.get(accountNumber);
bal = bal + amount;
balance.set(accountNumber,bal);

in.close();


}

private void withdraw(int accountNumber){
double amount = 0;

Scanner in = new Scanner(System.in);

System.out.print("Enter amount to withdraw: ");
String amt = in.nextLine();

try{
amount = Double.parseDouble(amt);
} catch (Exception e) {
System.out.println("You must input a number.");
}

double bal = balance.get(accountNumber);

if(amount > bal){
System.out.println("Insufficient funds.");
} else {
bal = bal - amount;
balance.set(accountNumber,bal);
}

in.close();


}

private void balance(int accountNumber){
double bal = balance.get(accountNumber);
System.out.println("Balance is " + bal + ".");


}

private int accountSearch(String s){
for(int i=0;i if(s.equalsIgnoreCase(name.get(i))){
return i;
}
}

return -1;
}

private void loadFile(){

Scanner inFile = null;

try {
inFile = new Scanner(file);
String acct = "";
String pass = "";
double bal = 0;

while (inFile.hasNextLine()){ //loops through the file as long as there is a next line
String line = inFile.nextLine(); //reads the next lineof the file

acct = line.substring(0,line.indexOf("|")); //extracts all characters to the left of the |
pass =
line.substring(line.indexOf("|")+1,line.indexOf("|",line.indexOf("|")+1));
//extracts all chars between the two | symbols
bal =
Double.parseDouble(line.substring(line.lastIndexOf("|")+1,line.length()));
//extraces all chars from the second | to the end of the line thenparses it

name.add(acct); //add to vector of names
password.add(pass); //add to vector of passwords
balance.add(bal); //add to vector of balances
}

inFile.close();
} catch (Exception e) {
System.out.println("Could not find file.");
}
}

private void writeFile(){

FileOutputStream fos = null;
DataOutputStream dos = null;

try {
fos = new FileOutputStream(file,false); //true to append,false to overwrite
dos = new DataOutputStream(fos);

for(int i=0;i dos.writeBytes(name.get(i) + "|" + password.get(i) +
"|" + balance.get(i) + "\n");
// write data to file in this format: name|password|balance
}

fos.close();
dos.close();

} catch (Exception e) {
System.out.println("Could not write file.");
}
}
}
Read On 0 comments

Out of the Frying Pan

Friday, December 11, 2009
Hell week is over. Next week is our last week of school for the year, and then it's off to the too-short Christmas break. Gah, gift shopping.

Why did I start posting again?

STR
-submit the R&D by 9 tonight
-submit hardcopy of Task List for fourth quarter on Monday

FIL
-free verse revision on Monday
-last three/four reporters on Monday

MATH
-your "tan"gible gift
-congratulations to those who came out of the LT alive. The rest of us, yeah, it's time for a long nap. T_T

CHEM
-YMSAT project

SOCSCI
-the signs to put up around campus, plus the floorplan

HEALTH
-alcohol + smoking videos

BIO
-mythbusters due on Tuesday

ENG
-Memoirs of a Geisha. Yung reviewer, baka umabot pa, depende kung mamarathon ko bukas ung libro. Otherwise, i'm asking for everyone's help to make chapter summaries. Kahit isang chapter lang feel niyo. Tapos share tayo lahat.

Those planning to do chapter summaries in their spare time, if any, include the ff:
@new characters intro-ed + descriptions
@returning characters
@major events (preferrably with Cause and Effect)
@vocab
@places
@quotes (optional)

PERIODIC TEST SCHEDULES

Wednesday, Dec 16 - Physics and SocSci
Thursday, Dec 17 - Chemistry and English
Friday, Dec 18 - Math and Bio

Sleepover-Christmas Party details to be discussed.

PROM FEES. PEOPLE, DEADLINE IS MONDAY. PHP2000. PLEASE, PLEASE, SHOW SOME SIGNS OF PAYING SOON. LIKE WOAH.

Also, those planning to do signs for SocSci, please also consider making a caption or haiku for the Dec-Jan caf signs. Size is half a sheet of bond paper (we used powerpoint for the previous signs). Brownies!!! (which i must update)

PASKORUS. One week left. I wasn't able to reserve the audi for Monday but with any luck we can get Thursday.
Read On 9 comments

2 Weeks Before Perio

Saturday, December 05, 2009
STR
- Proposal due on Monday, December 7, 9PM
- Chemical + Microbiological list due on Wednesday, December 9, 12NN
- Tasklist + Planned Write-up of Results and Discussion and Conclusion due on Friday, December 11

Bio
- Long test onTuesday, December 8

Fil
- Freeverse due on Wednesday, December 9
- Writing period on Monday

Physics
- Worksheet due on Monday, December 7
- Long test on Thursday, December 10

Math
- Quiz Kwingle (interclass)
- Long test on Tuesday, December 8

English
- Reports on In a Bamboo Grove on Tuesday, December 8
- Essay about "The end justifies the means" due on Wednesday, December 9. Please confirm?

Compsci
- ATM Program

Chem
- Probset on Monday, December 7

Health
- Videos about Alchohol + Smoking!

Paskorus
- Take care of your voices, again.
- Refreshing nalang yung Tuloy na Tuloy, focus tayo sa new piece.
- Choreo will most likely be the hands thing kapag sa 3rd Floor Audi.
- Attend practices, please?

Others
- Exchange gift bunutan on Monday! 8D
Read On 4 comments

Musical Mayhem

Friday, December 04, 2009
Okay. Instructions and facts.

_____________________

Stage One: Meeting place will be at McDo Philcoa, at 9am, since we cannot practice at Pisay without the permit.

notes: if you are in the dorm, there is a group of people commuting together (hannah, marj, gab, ancer, renz, poco). those unfamiliar with mcdo philcoa may join them, but you must inform them to wait for you. otherwise, go straight.

_____________________

Stage Two: From McDo, we will all walk the short distance to Ma'am Kiel's place at UP village. Then, practice.

notes: if you have ma'am kiel's address, please add it to the comments below.
_____________________

Stage 3: Practice. Bring your copies of the piece and make sure you've got the voice. We are not having lunch there, okay?
_____________________

Stage 4: We will take taxi's in groups of about five each to SM North.

notes: maam kiel did the math, of course. roughly 60 pesos daw for a taxi ride, divided between five people = 12 pesos each. it's supposedly our cheapest alternative. alla is also offering her car for about five people (marti and milan will be there /:) haha)
_____________________

The Fifth Stage: Lunch and the movie-musical. Depending on what time we arrive, we might have to merge the two :))

notes: we are likely having guests from Lithium to cover our two extra tickets. be nice to karen and binky, if ever. :-bd FOR THOSE WHO WILL NOT ATTEND THE PRACTICE, you are to meet us outside cinema 9 at around 1:30. weirdly enough, nars says that this cinema is reserved for paranormal activity @_@

____________________

Stage Six: Return. You have the option of being fetched at SM north, commuting home, or returning to Pisay in jeeps or carpools, whichever is available and practical.

______________________________________

Okay, I'm listening to Bang the Doldrums, so I don't know if I typed everything in right :-j if i was bangag and i missed something, please comment.
Read On 6 comments

Physics HW!

Wednesday, December 02, 2009

1. A jet plane traveling 1800 km/h (500 m/s) pulls out a dive by moving in an arc of radius 6.00 km. What is the plane’s acceleration, in terms of g’s?

2. A child on a merry-go-round is moving with a speed of 1.35 m/s when 1.20 m from the center of the merry-go-round. Calculate (a) the centripetal acceleration of the child, (b) the net horizontal force exerted on the child (mass = 25.0 kg).

5. A flat puck (mass M) is rotated in a circle on a frictionless air hockey tabletop, and is held in this orbit by a light chord which is connected to a dangling mass (mass m) through a central hole. Show that the speed of the puck is given by v = squareroot(mgR/M).

8. A ball on the end of a string is cleverly revolved at a uniform rate in a vertical circle of radius 85.0 cm. If its speed is 4.15 m/s and its mass is 0.300 kg, calculate the tension in the string when the ball is (a) at the top of its path and, (b) at the bottom of its path.

Read On 1 comments

Chem2

Recent Entries

Recent Comments