(no subject)

May 27, 2005 22:41

It's been a while since I've updated. I've been in a pretty lame mood for the past while and I've been terrified of everything. So this is the first update for like...2 weeks or whatever. Anyway, I thought I'd mention how lame Senior Skip day was for me. It actually...wasn't any skipping. It was more, "let's mold our schedule around others'"

1st) Go to nowacki's class for extra credit
2nd) Play softball with lazy kids
3rd) attempt to finish calculus project and end up messing up twice, ending in mediocrity.
4th) got a free icee thing, left and the fun begins. Finish lunch late and I end up having to be some hot scientist (lab coat included) for a scene with droppers and chemicals. sorry Dr. K.
5th) read achewood until I realize I can make the "egg and milk tracker program", so I do.
import javax.swing.JOptionPane;
public class MilkandEggs
{
public static void main (String [] args)
{
String egg2;
String milk2;
String eggsDay2;
String milkDay2;
double eggs;
double milk;
double eggsDay;
double milkDay;
egg2 = JOptionPane.showInputDialog(null, "How many eggs do you have?");
eggsDay2 = JOptionPane.showInputDialog(null, "How many eggs do you eat per day?");
milk2 = JOptionPane.showInputDialog(null, "How many ounces of milk do you have?");
milkDay2 = JOptionPane.showInputDialog(null, "How many ounces of milk do you drink per day?");
eggs = Double.parseDouble(egg2);
milk = Double.parseDouble(milk2);
eggsDay = Double.parseDouble(eggsDay2);
milkDay = Double.parseDouble(milkDay2);
JOptionPane.showMessageDialog(null, "You need to buy eggs in " + eggs/eggsDay + " days." +
"\nYou need to buy milk in " + milk/milkDay + " days.");
}
}

Don't bother with the text if you don't know how to use java.

Anyway, today was lacking in the entertainment department, but heck, we have 3 days.
Previous post Next post
Up