change

Posted January 21, 2009 by rednwhite
Categories: Random

import java.util.Scanner;
/**
* Figures out the change required to make the amount input by the user.
*
* @author Self
* @version January 21, 2009
*/
public class ComputeChange
{
public static void main (String [] args)
{
double change;

Scanner scan = new Scanner(System.in);

System.out.print ("Enter the amount of change needed: ");
change = scan.nextDouble();

double tens = change / 10;
double fives = (change % 10) / 5;
double ones = (fives % 5) / 1;
double quarters = (ones % 1) / .25;
double dimes = (quarters % 4) / .10;
double nickels = (dimes % 10) / .05;
double pennies = (nickels % 20) / .01;

System.out.println(tens + " ten dollar bills");
System.out.println(fives + " five dollar bills");
System.out.println(ones + " one dollar bills");
System.out.println(quarters + " quarters");
System.out.println(dimes + " dimes");
System.out.println(nickels + " nickels");
System.out.println(pennies + " pennies");
}
}

wut

Posted January 21, 2009 by rednwhite
Categories: Random

import java.util.Scanner;
/**
* Calculates the sum, difference, and product of two floating point numbers.
*
* @author Self
* @version January 21, 2009
*/
public class Calculator
{
public static void main (String[] args)
{
int num1;
int num2;

Scanner scan = new Scanner(System.in);

System.out.print ("Enter the first number: ");
num1 = scan.nextDouble();

System.out.print ("Enter the second number: ");
num2 = scan.nextDouble();

int sum = num1 + num2;
int difference = num1 - num2;
int product = num1 * num2;

System.out.println("Sum: " + num1 + " + " + num2 + " = " + sum);
System.out.println("Difference: " + num1 + " - " + num2 + " = " + difference);
System.out.println("Product: " + num1 + " * " + num2 + " = " + product);

}
}

Major Change

Posted March 19, 2008 by rednwhite
Categories: School

I don’t want to be an engineer.

All roads seemed to eventually be leading to something like managing a plastics manufacturing plant. I don’t want to be a manager of a plastics plant.

And I’m really not at all pretty certain this is what I want to do, but I’m double majoring in political science and psychology now.

I’m also doing remarkably mediocre in most of my classes, woo not caring.

Posted March 12, 2008 by rednwhite
Categories: Life

http://rednwhite.rotahall.org/?p=75

http://www.legacy.com/StarNewsOnline/Obituaries.asp?Page=LifeStory&PersonId=101336622

This happened a couple of months ago but I couldn’t bring myself to connect what I had said in that post and what happened last January until now.

Live every second like its your last.

Birfday

Posted February 21, 2008 by rednwhite
Categories: Uncategorized

I can finally buy cigarettes and porn!

Wierd Dream

Posted February 8, 2008 by rednwhite
Categories: Random Ramblings

I had a really strange dream last night.  My friend was driving a van, just me and her.  I was in the very back row.  She ran a red light at a bridge, and we rapidly descended towards the water below.  Right before we hit, I took a very deep breath and woke up, literally seconds before my alarm went off.  Nifty.

Hide and Seek

Posted September 27, 2007 by rednwhite
Categories: Uncategorized

I just listened to Imogen Heap’s Hide and Seek, and for some reason it instantly brought up something memorable my eighth grade social studies teacher had told our class. He had said that statistics had shown that by the time we all reached the age of 25, one of us would be dead. Of course we just blew that off as random trivia, but we couldn’t have been more naive and short-sighted of how little time we really have. Patience is a virtue, but it can be easy to slip into the delusion that things will change for the better, even though we know deep down that things won’t change. Extend every second you have to the fullest.


Follow

Get every new post delivered to your Inbox.