I’m going to try something a tad bit different… So brace yourself for a story of my day. Nothing interesting, nothing special.
Early within the morning, I heard a loud crash. It was the main door, I ignored it and traveled back to dreamland. Later on, I woke up for the second time and the heat hit me. It was about 10:12, no one else was home. As the lazy sloth that I am, I grabbed a towel and slowly slithered towards the washroom to take a shower…
And the day began.
Today was almost as monotonous as every other weekend lacking extraordinary company. Sitting and sitting, upon my chair. I sat with dual monitors staring upon my glazed face. I felt lost and at home at the same moment. Later on, somehow I realized that I had a biology assignment coming up and it had to be done.
Venturing out into the big, scary world that awaited me on the other side of my door I sighed. All that I could do was walk around with my eyes closed, ignoring it, for I was tired as usual. I crossed the street and walked towards coniferous trees, to collect conifers. I walked, and walked, soon to feel lost. But, I did not care. Tree, after tree. Each was twice as large as the other. Some, possibly measuring up to 30 meters. People walked by and gazed at me, suspiciously. As if I was not the doctor, nor the patient, but the murderer. Or perhaps because of my unusual appearance. I did not and do not dress up as the time to take a long walk within the woods. I was dressed a bit GQ-ish, never the less what they done was cruel. However, they cannot effect me. The only feed to my laughter.
Bored, bored, bored… Congratulations, you have wasted your own time reading this.
Now time for some java, for those of you who are taking IT12 and are slow. OR are going to take IT12 in the future. Don’t worry, my site will have ALL IT12 projects from 2002-2003 this summer for you leechies out there.:
/* programmer: Matthew Yok
course: Info Tech 12, Block E
project: Project I – Body Mass Index
starting date: 05-15-03
due date: ?
dependencies: ?
*/
import java.io.*;
class bmi
{
//****************************main method****************************
public static void main(String[]args) throws IOException
{
//**********************variable declarations********************
int gender, height, weight;
double m, kg, h2, bmi;
//*********************title and introduction********************
System.out.println(“tt Body Mass Index”);
System.out.println(“tt +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=”);
System.out.println(“The purpose of this program is to determine a person’s”);
System.out.println(“Body Mass Index and calculate whether the BMI is either”);
System.out.println(“low, average, or high.”);
//******************************input****************************
System.out.println(“t Enter person’s gender; if male type 1, if female type 2.”);
gender = KeyIn.anInt();
System.out.println(“t Enter person’s height in inches.”);
height = KeyIn.anInt();
System.out.println(“t Enter person’s weight in pounds.”);
weight = KeyIn.anInt();
//**************************calculation***************************
m = (height/ 39.37);
kg = (weight/ 2.20);
h2 = Math.pow((m), 2);
bmi= (kg/ h2);
//****************************output******************************
if ((gender <= 0)||(gender > 2))
{
System.out.println(“t Gender error, please restart.”);
}
if (weight <= 0)
{
System.out.println(“t Weight error, please restart.”);
}
if (height <= 0)
{
System.out.println(“t Height error, please restart.”);
}
if (bmi <= 25)
{
System.out.println(“t Person has a low risk of heart disease.”)
;System.out.println(“Your Body Mass Index is: “+bmi+”.”);
}
else
if ((bmi > 25) || (bmi < 30))
{
System.out.println(“t Person has a moderate risk of heart disease.”);
System.out.println(“Your Body Mass Index is: “+bmi+”.”);
}
else
if ((bmi == 30) || (bmi > 30))
{
System.out.println(“t Person has a high risk of heart disease.”);
System.out.println(“Your Body Mass Index is: “+bmi+”.”);
}
System.out.println(“tt”);
System.out.println(“nt This program is now finished. Press Enter to exit.”);
byte EnterKey[]=new byte[1];
System.in.read(EnterKey);
}
}