YO!

Nov 04, 2004 10:26

Haven't seen you in quite some time. I've been doing programming recently. I get so excited when I make a program on my own that works. It's just so much fun! :]

Anyway, today I woke up at around ~8:15am; which is really early for me. It took me about 15 minutes to get myself together just to shower. After that, I shaved, and then I went to the SAC to eat the most unpredictable breakfast. BEC(Bacon, egg, and cheese on a roll) and crab sushi. Sounds like a great breakfast to me!

Been listening to a song a lot recently. "Mr. Brightside"-The Killers

If you want a nifty cash register program...

main()
{
float item=1,taxtot,tendered,change,total=0;
printf("---------------------------------------------\n///////Welcome to Tim's cash register!///////\n---------------------------------------------\n\n\nPlease input the cost values of each item.\nTo end the item list input a zero.\n");
printf("*Input cost values for the items one at a time.\n\n\n");
for(item!=0;item>0;){
printf("Please enter the item price.\n");
scanf("%f", &item);
total=total+item;
printf("Total amount: $%f\n\n", total);
}
taxtot=(total*.0775)+total;
printf("Total amount with tax (7.75 percent): $%f\n\n\nAmount tendered?\n", taxtot);
scanf("%f", &tendered);
change=tendered-taxtot;
printf("\nTotal amount: $%f\nTotal amount with tax: $%f\nTendered amount: $%f\nTotal change: $%f\n\n\n*Have a nice day! :D\n\n", total,taxtot,tendered,change);
}

I like playing around with my programs and putting stuff in them to make them look pretty. :3
That's about it, not much I can think of to write besides, "thelo na peso ke na kano meto apano mou."
Previous post Next post
Up