rss feed blog search engine
 
Search rss blog search engine
 
CT Crumlin  
Released:  11/4/2009 5:24:54 PM
RSS Link:  http://feeds.feedburner.com/CtCrumlin
Last View 11/16/2009 8:23:29 AM
Last Refresh 11/21/2009 5:50:03 PM
Page Views 34
Comments:  Read user comments (0)
Share



Description:



A Blog to discuss daily life in the CT course in Crumlin College... Innit !


Contents:

Program with while and switch statement 21/11/09
No Gravatar

Here is a simple program which utilises the while and which statement

class bswitch
{
public static void main(String [] args)
{

double deposit,new_deposit;
double rate = 0;
int year = 0;

System.out.println(”What is the amount you wish to invest”);
deposit = EasyIn.getDouble();
System.out.println(”");

System.out.println(”How many years would you like to invest your money”);
year = EasyIn.getInt();
System.out.println(”");

while ( year > 4 )
{

System.out.println(”");

System.out.println(”How many years would you like to invest your money”);
year = EasyIn.getInt();
System.out.println(”Please enter 1,2,3 or 4″);
System.out.println(”");

}

switch (year)
{
case 1: rate = deposit * 0.01;
break;

case 2: rate = deposit * 0.02;
break;

case 3: rate = deposit * 0.03;
break;

case 4: rate = deposit * 0.04;
break;
}

new_deposit = deposit + rate;

System.out.println(”");
System.out.println(”your original deposit was” + ” ” + deposit);
System.out.println(”");
System.out.println(”you have chosen to invest your money for ” + ” ” + year + ” ” + “years”);
System.out.println(”");
System.out.println(”Your new deposit is ” + “” + new_deposit);

}
}




Swine Flu Program
No Gravatar

Here ya go lads, might build more onto it myself. For the moment feel free ta edit it.


// This program decides that if you are eligible to recieve a Swine Flu injection.
// ‘*Wayne Rochford *’

class swineflu
{

public static void main(String args [])
{

String name;
int age;

System.out.println(”******Swine Flu Jab Injector******”);
System.out.println(”");
System.out.println(”Please enter your name.”);
System.out.println(”");
name = EasyIn.getString();
System.out.println(”");
System.out.println(”Please enter your age.”);
System.out.println(”");
age = EasyIn.getInt();
System.out.println(”");

while(age <=5)
{
System.out.println(”Injections are not given to people 5 years or younger.”);
System.out.println(”");
System.out.println(”");
System.out.println(”Please enter your name.”);
System.out.println(”");
name = EasyIn.getString();
System.out.println(”");
System.out.println(”Please enter your age.”);
System.out.println(”");
age = EasyIn.getInt();
System.out.println(”");
System.out.println(”");

}

System.out.println(”****You are eligible for the Swine Flu injection.****”);
System.out.println(”");

{        System.out.println(”Please wait while we inject you..”);
System.out.println(”");
for(int a=1; a<=100; a++)
{
System.out.println(”" + a + “%”+” Injecting…. “);
System.out.println(”");

}

System.out.println(”");
System.out.println(”Fully Injected…”);
System.out.println(”");

}

{

System.out.println(”******Thank you for using the Swine Flu Jab Injector******”);
System.out.println(”");

}

}

}




ebay!
No Gravatar

It’s great, got a 16gb flash drive today for 9.00 won the bid!. Lets just see if its legit, i’ll let ya’s know the results!.




The “Harder” Programme we got in Java
No Gravatar

This post was edited on the 19/11/2009

class supernova
{

public static void main(String [] args)
{

double number1,number2,number3,number4,number5;
double average;
double total;

System.out.println(”enter first number”);
number1 = EasyIn.getDouble();
System.out.println(”");
System.out.println(”enter second number”);
number2 = EasyIn.getDouble();
System.out.println(”");
System.out.println(”enter third number”);
number3 = EasyIn.getDouble();
System.out.println(”");
System.out.println(”enter fourth number”);
number4 = EasyIn.getDouble();
System.out.println(”");
System.out.println(”enter fifth number”);
number5 = EasyIn.getDouble();
System.out.println(”");

total = number1 + number2 + number3 + number4 + number5;

average = total/5;

for(int i = 5; i<=5; i = i+5)
{

System.out.println(” The first number is and average is ” + i);

}

}

}




Finished!
No Gravatar

I finally got mt work experience finished :) . I learned a lot and gained a lot of experience. Next task is to find out what to do with my spare time, do some Java maybe :D :P .




Email Subscription Added to CT Crumlin Innit
No Gravatar

I have added an email subscription feature to the blog lads to make it easier to stay upto date with whats being posted on the blog. I am a huge fan of RSS feeds but i realise that not alot of people who i talk to use an RSS reader. So if you want to stay up to date and be notified via email everytime there is a new post on the blog click on ‘ email ‘ on the very top right of the blog and then you will be redirected to feedburner. Enter the code shown and then everytime someone makes a new post on the blog you will receive an email. Pretty slick innit




Code for Web design 09/11/09
No Gravatar

Hey lads, got my web design code finished today in class, so here it is:

<HTML>
<HEAD>
<TITLE>Actors</TITLE>
</HEAD>

<BODY BGCOLOR=”#FFFFFF” LINK=”#8000FF” VLINK=#008000″ ALINK=”#FFF8FF”>
<FONT COLOR=”#800080″>

<A NAME=”#Top”></A>

<P>
Click on the actor to find out what movies he/she was in

<P>

<A HREF=”#Tom”>Tom Cruise</A><BR>
<A HREF=”#James”>James Dean</A><BR>
<A HREF=”#Renee”>Renee Zelwegger</A><BR>
<A HREF=”#Nicholas”>Nicholas Cage</A><BR>
<A HREF=”#Julia”>Julia Roberts</A><BR>

<DIV ALIGN=”CENTER”>
<EMBED SRC=”tourism.wma”>
</DIV>

<P>
<H3>
<A NAME=”Nicholas”>Nicholas Cage</A>
</H3>
<P>

<IMG SRC=”collateral.jpg”>

<P>
Leaving Las Vegas<BR>
Treasure Hunt<BR>
Raising Arizona<BR>
The Rock<BR>
Con Air<BR>
The Weatherman

<H3>
<A NAME=”Renee”>Renee Zelwegger</A>
</H3>
<P>

<IMG SRC=”vindiesel.jpg”>

<P>
Brigit Jones Diary<BR>
Jerry Maguire<BR>
Cold Mountain<BR>
Miss Potter

<H3>
<A NAME=”Tom”>Tom Cruise</A>
</H3>
<P>

<IMG SRC=”dublin.jpg”>
<P>

Top Gun<BR>
Mission Impossible<BR>
Born on the fourth of July<BR>
Far and away<BR>
Eyes Wide Shut

<H3>
<A NAME=”James”>James Dean</A>
</H3>
<P>

<IMG SRC=”chronicles.jpg”>
<P>

East Of Eden<BR>
Rebel with a cause<BR>
Giant

<H3>
<A NAME=”Julia”>Julia Roberts</A>
</H3>
<P>

<IMG SRC=”batman2.jpg”>
<P>

Pretty Woman<BR>
Erin Brochovich<BR>
Flatliners<BR>
Notting Hill<BR>

<P>

<A HREF=”#Top”>Back To Top</A><BR>

</HTML>




Plugins
No Gravatar

Myself and Alan are keeping this up to date with cool new plugins and features, so don’t be surprised if you see changes from day to day :P




Solution to web design anchor code
No Gravatar

Red = Important!!

Ok take this code for example after you have put in all your font color’s etc and title’s

you start with code like this. ex.

<A HREF=”drummers.html#Tony”>Tony Mc Carroll</A>,

Then what i have done is before the title Oasis i put in the code

The code looks like this.

<A name=”#Tony”>
<h5>Oasis</h5>
</p>
<img src=”oasis2.jpg” width=”200″ height=”200″ border=”0″>
</a>
<p>
Liam Gallagher(Lead singer)
<br>
Paul Arthurs(Guitar)
<br>
Paul Mc Guigan(Bass)
<br>
Tony Mc Carroll(Drums)
<br>
Noel Gallagher(Guitar and vocals)
<br>
</br>
</p>

It may seen confusing but for the moment it works for me, Brenda might find a problem . Just keep repating the code with the different bands and drummers. Oh and also to scroll to the top of the page I have this code sort out , again it works for me :D . Here’s the code

<A HREF=”drummers.html#Drummers”></A>

Code in action ex.

<body bgcolor=”#4B0082″ link=”#ffffff”>
<font color=”#000000″>
<div align=”left”>
</font><A name=”#Drummers”>
<center><h1>Drummers</h1></center>
<p>&nbsp;</p>
<p>

Hopefully you can understand this the way I do..




I Have to get back to Thailand next year
No Gravatar

Well i have been to thailand for the last 4 years and spents just over 6 months there on 2007. I didnt make it this year but I am going to try my hardest to get back there next year. Mr Domican is interested in coming with me, i think he would love it.. Tonnes of cheap  girls and cheap gargle.. whats not to like? I know its not everybodys cup of tea but i love it. Treated like a rocks star and surrounded by stunners. And the beaches are some if the best on the planet.








Home  
 



Link to us




RSS Feed of new blogs                                                   Home        Feed Map        Submit Feed      Link to Us       Contact