Credits

Saturday, December 18, 2010

Smart Things You Can Do on School Break

The two weeks of vacation has finally started and most of the students and school personnel can only be overwhelmed of the long break before the next exam and school requirements shall be up and running again on January 3, 2011.

But, the two weeks can indeed be dragging or fulfilling depending on how you materialize your free days. So, to make the vacation more worthwhile, you can do one or two from the given list below:

  • Check or work on school papers like projects, test papers, and other school reports and requirements;
  • Review for your anticipated exams;
  • Join charity events and other socio - civic events like planting walnut tree   and alike or doing dental / medical mission;
  • Set reunions with lost friends;
  • Have a fun travel to an exciting place.
  • Pamper yourself with a good book, parlor spa, or simply strings of new and classic movies.

Are You an iPad or a Kindle?



You Are a Kindle




You are a true lover of books and a hardcore reader. You love to get lost in what you're reading.

Even though you like spending time online, you know that it can distract you from what you should be doing.



You are rather serious and down to earth. You don't give into frivolous notions.

If you will truly use a gadget, you'll buy it - but you don't buy anything just because it's the latest and greatest.

College Jokes: HOW PROFESSORS GRADE THEIR EXAMS

HOW PROFESSORS GRADE THEIR EXAMS
source: lifeisajoke.com

DEPT OF STATISTICS:
All grades are plotted along the normal bell curve.

DEPT OF PSYCHOLOGY:
Students are asked to blot ink in their exam books, close them and turn them in. The professor opens the books and assigns the first grade that comes to mind.

DEPT OF HISTORY:
All students get the same grade they got last year.

DEPT OF RELIGION:
Grade is determined by God.

DEPT OF PHILOSOPHY:
What is a grade?

LAW SCHOOL:
Students are asked to defend their position of why they should receive an A.

[+/-] show/hide


DEPT OF MATHEMATICS:
Grades are variable.

DEPT OF LOGIC:
If and only if the student is present for the final and the student has accumulated a passing grade then the student will receive an A else the student will not receive an A.

DEPT OF COMPUTER SCIENCE:
Random number generator determines grade.

MUSIC DEPARTMENT:
Each student must figure out his grade by listening to the instructor play the corresponding note (+ and - would be sharp and flat respectively).

DEPT OF PHYSICAL EDUCATION:
Everybody gets an A.

Monday, December 13, 2010

Peeked - Up Personality Makes College More Fun

The nice thing about being in school and falling in love at the same time is the fact that it can be more exciting and fun. College life is the pinnacle of self development as students harness their academic and social skills among others. As  students become more independent and  self conscious about their personality specifically their weights and looks, school programs are made to make sure that they are holistically developed. For one, personality development seminars and fora on   most effective weight loss pills     among others are covered.

As a college teacher, I only hope that students when they graduate, they can carry on by themselves. And, earning a job is no easy feat but if students are equipped with confidence and academic skills, they can earn a good job they can be personally proud of.

Indeed, personality matters and college students must do their own share to make sure that they are a total package of what any employer wish for his employees.

College Jokes: Universal Grade Change Form

Joke source: basicjokes.com

To: Professor _______________
From: ____________________

I think my grade in your course, ___, should be changed from ___ to ___ for the following reasons:

__1. The persons who copied my paper made a higher grade than I did.

__2. The person whose paper I copied made a higher grade than I did.

__3. This course will lower my Grade Point Average and I won't get into:

__Medical School
__Graduate School
__Dental School
__Fraternity/Sorority
__The Mickey Mouse Club
__Tri County Tech


[+/-] show/hide


__4. I have to get an A in this course to balance the F in ______.

__5. I'll lose my scholarship.

__6. I'm on a varsity sports team, and my tutor couldn't find a copy of your exam for me.

__7. I didn't come to class and the person whose notes I used did not cover the material asked for on the exam.

__8. I studied the basic principles and the exam wanted every little fact.

__9. I learned all the facts and definitions but your exams asked about general principles.

__10. You are prejudiced against:

__ Males
__ Blacks
__ Females
__ Jews
__ Catholics
__ Whites
__ Protestants
__ Minorities
__ Chicanos
__ Students
__ People

__11. If I flunk out of school my father will disinherit me or at least cut my allowance.

__12. I was unable to do well in this course because of the following illness:

__ mono
__ broken baby finger
__ acute alcoholism
__ pregnancy
__ VD
__ fatherhood

__13. You told us to be creative but you didn't tell us exactly how you wanted that done.

__14. I was creative and you said I was just shooting the bull.

__15. I don't have a reason; I just want a higher grade.

__16. The lectures were:

__ too detailed to pick out important points.
__ not explained in any sufficient detail.
__ your class was far too boring.
__ all jokes and not enough material.
__ all of the above.

__17. This course was:

__too early, I was not awake.
__at lunchtime, I was hungry.
__too late, I was tired.

__18. My (dog, cat, gerbil) (ate, wet on, threw up on) my (book, notes, paper) for this course.

__19. Other reason: __________________.
Interface  becomes a medium for user and software  to interact. Since multiple inheritance is a big NO - NO in Java, this is remedied through the use of interface. Multiple objects can be used that act as a single unit. To create an interface, we employ the keyword implements just as the statement below:

public class interfaceDog extends abstractDog implements interfaceWorking{

The programs below link different programs that make use of both abstract and interface classes.

[+/-] show/hide

/*sample program on abstract classes
* parent class to program files : abstractDog, abstractSnake, abstractCow
called by abstractAnimalRefence class
*/

public abstract class AbstractAnimal {
private String name;



public AbstractAnimal(String nm)
{
name = nm;
}

public abstract void speak();

public String getName()
{
return name;
}
}


/*sample program on abstract classes
called by abstractAnimalRefence class
*/

import javax.swing.*;
public class abstractDog extends AbstractAnimal{


public abstractDog(String nm)
{
super(nm);
}

public void speak(){
JOptionPane.showMessageDialog(null," WOOF! Woof! Woof!");
}

}

public class interfaceDemoWorkingDog{
public static void main(String args[]){
interfaceDog myPixel = new interfaceDog("Gia");
myPixel.work();
}
}

/* works with interface interfaceWorking class
works also with the calling program interfaceDemoWorkingDog*/
import javax.swing.*;

public class interfaceDog extends abstractDog implements interfaceWorking{
public interfaceDog(String nm){
super(nm);
}
public void work()
{
speak();
JOptionPane.showMessageDialog(null," I can herd sheeps.");
}
}

School Breaks Mean More Fun

The two weeks from school works can only mean long vacation and more fun for most students and school personnel. While most of the students only stay in dormitories since their homes are remote and away, they normally go home for a long vacation during holiday break.

And with the cool weather brought by El Nina, the December becomes a good time to have hibernating but hyper fun vacation with friends and loved ones. Nice  electric fireplaces   can only be quite welcoming.

So, aside from picnics and more time of sleeps, what else can students and school personnel do during school breaks. I can think of only the following:

  • bar hoppings
  • reunions
  • mall shoppings
  • social networks mania
  • travels and 
  • more  fun!

Java's Use of Abstract Classes

Abstract classes in Java are used as base class for other classes. They cannot however be instantiated but are allowed to be parent of child classes. Abstract classes may or may not contain abstract methods but abstract methods must be in abstract class.

The programs below have used abstract methods and class to allow different actions for different objects.

[+/-] show/hide


/*sample program on abstract classes
* parent class to program files : abstractDog, abstractSnake, abstractCow
called by abstractAnimalRefence class
*/

public abstract class AbstractAnimal {
private String name;



public AbstractAnimal(String nm)
{
name = nm;
}

public abstract void speak();

public String getName()
{
return name;
}
}


/*sample program on abstract classes using array of objects
* The calling program of abstract classes
*/
import javax.swing.*;
public class AbstractAnimalReferencev2
{
public static void main(String args[]){
String pet= " ";
AbstractAnimal[] ref = new AbstractAnimal[3];

abstractCow aCow= new abstractCow("Daisy");
abstractDog aDog= new abstractDog("Pixel");
abstractSnake aSnake= new abstractSnake("Lily");


ref[0] = aCow; //abstract or not, a reference can be made to a superclass
ref[1] = aDog;
ref[2] = aSnake;



for ( int x =0;x<3;x++) { if (x == 0) pet=" cow "; if (x == 1) pet=" dog "; if (x == 2) pet=" snake "; JOptionPane.showMessageDialog(null,"My "+ pet + " named "+ref[x].getName()+" says "); ref[x].speak(); } } } /*sample program on abstract classes called by abstractAnimalRefence class */ import javax.swing.*; public class abstractCow extends AbstractAnimal{ public abstractCow(String nm) { super(nm); } public void speak(){ JOptionPane.showMessageDialog(null," Moo! Moo! Moo!"); } } /*sample program on abstract classes called by abstractAnimalRefence class */ import javax.swing.*; public class abstractDog extends AbstractAnimal{ public abstractDog(String nm) { super(nm); } public void speak(){ JOptionPane.showMessageDialog(null," WOOF! Woof! Woof!"); } } /*sample program on abstract classes called by abstractAnimalRefence class */ import javax.swing.*; public class abstractSnake extends AbstractAnimal{ public abstractSnake(String nm) { super(nm); } public void speak(){ JOptionPane.showMessageDialog(null," Sss! Sss! Sss!"); } }

More December Holidays!

Based on Presidential Proclamation 1841, December 2010  becomes more fun and lovely as the national government of the Philippines declared the following dates in  December  as non - working holidays:

December 24 – Christmas Eve
December 25 – Christmas Day
December 27 – Rizal Day (December 27, Monday nearest December 30).
December 31- Last day of the year.


With schools coming to holiday off this Friday, December 17 and resume January 3, 2011, school personnel and students can only be happier. Other non - school employees however can enjoy the fun of long holidays. 


zwani.com myspace graphic comments
Twitter Backgrounds

Sunday, December 12, 2010

School Organizations for Better Students

While schools are required to implement basic curricula of the Commission on Higher Education, they can actually implement supplementary instructions and programs to make sure that students  grow and learn better.


My school, STI Gensan, enforced a more proactive programs for the students and their parents. For one, there are now small circles of students who share the same passion, inclination or background. We even have a group for married students and boarding students.


With this change, our school expects that parents and students become closer with the school, so that, the latter can respond better. In fact, if there are student gatherings like weddings, birthdays, births and alike, teachers and administrators normally receive invitations and cards including  baby thank you cards  to boost.


With various organizations in school, students need not to settle for unwanted vices or peers with wrong influence. And, with elders to lead the organizations, they guide better their student members.


So, with motivated administration and passionate teachers plus effective student programs, students can only become better and brighter.

Learn More through Summits and Conventions

We recently concluded the Blog Fest SOCCSKSARGEN 2010 and the anticipated participants of 50 rose to 108+ that the venue was simply swarmed.

A great number of attendees were young students of AB Mascom and Journalism. While the summit's main agenda were blogging and all about internet technology and security, the summit became an overwhelming resource of blogging issues and must-do's.


When summits and conventions are well prepared and organized, they can indeed become  a new medium for industry - based updates. Although, these gatherings may mean costs, but additional inputs can be all worth the  travel, pay, and time.

So, if you are a student, teacher, office worker and alike, learn from your comfort zones and take the advices of the experts.

How to Prepare for Your Major Exams

We shall be having our major exams this Tuesday and though we have practically completed our lessons prior to test, we quite doubt if our students have started their reviews. Earning a passing mark is never really easy; but, if without effort, students can only have a clear foresight of their grades.

So, if you are anticipating a major exam, perhaps, the following tips in my point of view as a college teacher may be helpful to you:

  • Using your course outline, study on topics with cited resources;
  • Schedule one week ahead how you should divide your time to study; Normally, I would start on difficult subjects, then, move my way to easier ones. That way, I shall have more time on subjects that need more pressing focus;
  • Make outline for your readings; You can also highlight best points on your notes or personal books;
  • Choose a convenient learning may it be your bedroom, veranda with or without companions;
  • Make mock test questionnaires to test your comprehension and other skills;
  • Study with more knowledgeable peers on topics that need guidance;

Thursday, December 9, 2010

School Holiday Parties and More

December is simply filled with dates for vacations, reunions, parties and more parties. And, since almost all private and public establishments hold holiday parties with gift giveaways, we have to hunt for the big events that can simply fit within our limited budget.

But, as personal gifts, I wish I can have my iPhone,  Nintendo Wii  with lots of sweat - inducing games, laptop with CD drive, external hard drives and gadget accessories.  The kids at home simply prefer high - end toys to boost. Good thing that a number of commercial establishments, both online and offline, offer big discounts.

Christmas breaks may start on the 17th and until then, schools shall hold their last week of class with exams, then, endless parties can come around with very long vacation to look forward to.

Is Your Willpower Strong?



You Have Willpower of Steel



Your personal motto could be "Where there's a will, there's a way."

If you will something, you make it happen - no matter how difficult it is.



You don't back down from commitments, even when you regret making them.

That being said, you are pretty careful about what you commit to!


       

Java's More Use of Inheritance

 As discussed in my older posts, inheritance allows us to re-use codes as we establish parent and child relationship. With this, the child class(es) can explicitly have access to member fields and methods in a parent class while the child execute its own distinct methods.

I have declared my variables to be static and with this, they can be accessed using the class name written as such:

super(SampleInheritance5.myname,SampleInheritance5.myaddress);
 To see the entire program with the use of static variables in a parent - child classes, simply check the see more (+/-) signs.
[+/-] show/hide


/*with super in constructor*/
import javax.swing.*;
public class SampleInheritance5{
static String myname;
static String myaddress;

public static void main (String args[]){
String xmyname = JOptionPane.showInputDialog("Input a student name: ");
String xmyaddress = JOptionPane.showInputDialog("Input a student's address: ");
String mycourse=JOptionPane.showInputDialog("Input a student's college course: ");

myname=xmyname;
myaddress=xmyaddress;

College3 obj1=new College3();
obj1.setcourse(mycourse);

JOptionPane.showMessageDialog(null,"object of the child class");
JOptionPane.showMessageDialog(null,"Student's Info: "+"\n"+obj1.name+"\n"+obj1.getaddress()+"\n"+obj1.getcourse());

}

}


class Student3{
protected String name;
protected String address;

Student3(String xname, String xaddress){
name=xname;
address=xaddress;
}


String getname()
{return this.name;}

String getaddress()
{return this.address;}

}



class College3 extends Student3{

College3(){
super(SampleInheritance5.myname,SampleInheritance5.myaddress);
}

String course;

void setcourse(String xcourse)
{course=xcourse;}

String getcourse()
{return this.course;}

}












Wednesday, December 8, 2010

Don't Get Sick in School

School is one of the most public places that an individual can easily get sick. And, because of the close - knit relationship of students and school personnel with one another, it can't be avoided that possible illnesses are passed on from one individual to another. In fact, I seemed to acquire my measles when I started teaching for a week.

But, oftentimes, we get sick because of allergy. The damp weather, dusts, pollens and other allergens can actually trigger allergy. And, when allergy simply persists, we can only see our doctors for prompt attention. Good thing there are hospitals and clinics like  allergist austin    who cater to allergy - inflicted individuals.

School personnel and students must strongly encourage hygiene and cleanliness, so, to contain the spread of diseases. Allergy is non - infectious and knowing this will help other individuals know what to do.

School's on Consultation Time

We can only commend the efforts of some schools particularly my current employer, STI Gensan, as it holds consultation time for students. And, since it is strictly observed and enforced, teachers have to render an hour of consultation every week.

Since, I have only Monday -- Wednesday -- Friday class schedules but I have an hour of consultation with them. Further, I can use the time to do my one - on - one tutorials with students who need extra attention.

Further, we are now compelled to call the attention of the parents on students who are considered delinquent and need immediate attention. This way, the school can be socially responsive with the different issues of some students and calling the attention of the parents can make the efforts all complementary and effective.

Java's Use of super ( ) on Inheritance

When we instantiate, we activate our constructors, but if  we want to pass new values as arguments, then, we embed these arguments in our instantiation command as follows:

College2 obj1=new College2(myname,myaddress);

But, when we establish parent - child relationship, constructors are not inherited by the child class. A child class can only have access  to member fields and methods of the parent class. To remedy this, super ( ) command is used. Use super ( ) without the arguments to activate the default constructor values of the parent class just like the program below.

However, if you wish to enforce your new values for your parent constructor, then, embed in super ( ) some arguments such as below:

super(xname,xaddress);

[+/-] show/hide

/***
* @author Rose
*/
import javax.swing.*;

public class SampleInheritance4a {

/*with super in constructor*/


public static void main (String args[]){
String myname=JOptionPane.showInputDialog("Input a student name: ");
String myaddress=JOptionPane.showInputDialog("Input a student's address: ");
String mycourse=JOptionPane.showInputDialog("Input a student's college course: ");


College2 obj1=new College2(myname,myaddress);
obj1.setcourse(mycourse);

JOptionPane.showMessageDialog(null,"object of the child class");
JOptionPane.showMessageDialog(null,"Student's Info: "+"\n"+obj1.name+"\n"+obj1.getaddress()+"\n"+obj1.getcourse());

}

}


class Student2{
protected String name="JUan";
protected String address="Lagao";

Student2(String yname,String yaddress){
name=yname;
address=yaddress;

}

Student2(){

}

String getname()
{return this.name;}

String getaddress()
{return this.address;}

}

class College2 extends Student2{

College2(String xname,String xaddress){
super(xname,xaddress);
//super();

}

String course;

void setcourse(String xcourse)
{course=xcourse;}

String getcourse()
{return this.course;}

}

Monday, December 6, 2010

How to Address Occupational Hazards of Teaching

Just like any job, teaching is one draining job that indeed requires long standing and too much writing. Normally, after a day's work of teaching, I can only complain of back and wrist aches.

While we can choose to resign from this job, we simply have fallen in love with this career that we can only endure. But, we can quite address our health issues through the following tips:

1. Exercise regularly to keep your  weights within normal ranges and protect you from weight - related illnesses;
2. Develop healthy diet and good posture;
3. Relieve your body pain and discomforts through compression pads from   compression stockings online  , massage  or pain reliever.
4.  Develop positive character over your work. Mental stress can be more difficult, thus, having a positive outlook of one's work can be a good head start.

Java's Implementation of Inheritance

The very core of object - oriented programming is reusability and this is quite illustrated in the application of inheritance.


In Java, we can create a parent and child class that can share common characteristics and functions but may also acquire individual differences.

When we create a parent - child relationship, we use the keyword extends in the class header line. With this, we then create instances of these classes and just call their methods. See the programs below for illustration.

[+/-] show/hide


import javax.swing.*;
public class SampleInheritance3{


public static void main (String args[]){
String myname=JOptionPane.showInputDialog("Input a student name: ");
String myaddress=JOptionPane.showInputDialog("Input a student's address: ");

Student1 obj1=new Student1();
obj1.setname(myname);
obj1.setaddress(myaddress);

JOptionPane.showMessageDialog(null,"object of parent class\n Student's name : "+obj1.getname()+"\nStudent's address : "+obj1.getaddress());

College1 obj2=new College1();
String mycourse=JOptionPane.showInputDialog("Input a student's college course: ");
obj2.setname(myname);
obj2.setaddress(myaddress);
obj2.setcourse(mycourse);

JOptionPane.showMessageDialog(null,"object of the child class");
JOptionPane.showMessageDialog(null,"Student's Info: "+"\n"+obj2.name+"\n"+obj2.getaddress()+"\n"+obj2.getcourse());

}

}

//the parent class
class Student1{
protected String name;
protected String address;


void setname(String xname)
{name=xname;}

String getname()
{return name;}

void setaddress(String xaddress)
{address=xaddress;}

String getaddress()
{return address;}

}


//the child class
class College1 extends Student1{


String course;

void setcourse(String xcourse)
{course=xcourse;}

String getcourse()
{return course;}

}












Java's Use of Constructors with Arguments

Constructors are created as means to create objects. Normally, constructors are without arguments but when we want our classes to be more interactive with one another, we allow the use of constructors with arguments to take play.


The program below shows a way for the programs to pass arguments to one constructor.

[+/-] show/hide


//called by ComputePayCallingConstructor

public class ComputePayConstructor {

double netpay;
double hrate;
double hrsworked;
double tdeductions;

ComputePayConstructor(double hr, double hw, double td)
{
hrate=hr;
hrsworked=hw;
tdeductions=td;
}


double compute()
{ netpay= (hrate*hrsworked) - tdeductions;
return netpay;
}

}


/*the calling program*/
import java.io.*;
public class ComputePayCallingConstructor {


public static void main(String args[]) throws IOException{
double xhrate;
double xhrsworked;
double xtdeductions;
String name;
String position;
String payperiod;

BufferedReader br= new BufferedReader(new InputStreamReader(System.in));

System.out.println("Input employee's name:");
name=br.readLine();


System.out.println("Input employee's position:");
position=br.readLine();

System.out.println("Input payroll period:");
payperiod=br.readLine();

System.out.println("Input employee's hourly rate:");
xhrate=Double.parseDouble(br.readLine());

System.out.println("Input employee's hours worked:");
xhrsworked=Double.parseDouble(br.readLine());

System.out.println("Input employee's total deductions:");
xtdeductions=Double.parseDouble(br.readLine());

ComputePayConstructor myObject=new ComputePayConstructor(xhrate,xhrsworked,xtdeductions);

System.out.println("Payroll Period:"+payperiod);
System.out.println("Name:"+name);
System.out.println("Position:"+position);
System.out.println("Hourly Rate:"+xhrate);
System.out.println("Hours worked:"+xhrsworked);
System.out.println("Employee's Net Pay: "+myObject.compute());
}
}