C'est les choses dans ma tête.

Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

9.9.06

I got bored.




I got bored today, and decided to make a web browser with Visual Baisc. Unfortunately the version of Visual Basic I get from school doesn't allow me to create exe's so, I can't like provide it for download or anything. Here's a screenshot.

17.8.06

My lament.

Hello, my long lost love.

I feel terribly sorry that I have not written in you for such a long time. It makes me sad.

Okay, so in the time I have been away, what's happened. Everything. First of all, you turned one year old! Yipee, this is such a nice accomplishment.

Then, three days ago, school started. It's such a drag. I feel the pressure already bearing down on my shoulders. I would have to say the class that I am most eager about is Creative Writing. The teacher is freaking awesome.

Then, I got to go to an anime convention with my cousin and best friend. It was pretty pimpin'. I think I am going to hang out with that cousin, Molly, tomorrow. It should be a good time. The convention was great. I got tons of free stuff, and all of these neat posters that are hanging on my wall.

I feel a bit depressed right now, but it is such a petty reason, that I am already starting to feel like I am over it. I am so lame. I wish that I didn't care about things like this, but I can't help it. This sorta hurt my feelings. Oh well, I move ahead.

Oh yes! I am also taking computer programming with the completely awesome Mrs. Lasley. It's is such a blast. Well, all we have really done this far is learn about the history of computers and stuff. I have to admit, though, it's still extrememly interesting. I must be like overly enthusiastic about this class or something.

The dating situation... it isn't going to great. I keep wanting to meet new people, but I mean, who is there? Seriously. This is too hard. Boo. That's all I have to say there... except for this crush... I won't go into that. It's probably a big disaster waiting to occur.

So, yeah, that's the scoop, and I feel horrendous about this whole broken laptop deal. I am thinking that it is getting closer to being fixed.

I'll post back as soon as I can.

4.5.06

Mon Jour

My day was not very interesting. It was very boring.

It sort of sucked.

BUT! Tomorrow is Friday, and my birthday is on Sunday!
Now, that doesn't suck.

Wewt




558769=9.31323x1020

Do this calculation and more on my calculator program, Calculatus.




I think I going to burst at the seams soon.

26.1.06

Project Hoshimi

My Algebra 2 teacher, Mrs. Lasley, told me about this really cool contest that is going on all over the US. It is called Project Hoshimi.

Project Hoshimi is a neat contest that incorporates computer programming and problem solving. Check it out here: Hoshimi Challenge.

I had a lot of fun at my aunt's Chinese dinner. It was so delicious. She made some chicken dish and a pork dish. They were both incredibly delicious.

Us cousins all entertained ourselves by adding 'in bed.' to the end of all of our fortunes from the fortune cookies. It was quite immature, but still very, very funny. Here's one I got:

"Your luck is about to drastically change *in bed*."

Haha, here's another:

"Don't rush through, stay and enjoy the scenery *in bed*."

Wow, that was fun.

How did your weekends go?

I guess it's a little late to be asking, since next weekend starts tomorrow night.

Heh, I need to post more often.

13.1.06

Calculatus v 1.5

Calculatus v 1.5

I think this can be officially called a 'scientific calculator' now.

Additions- Square root, sine, cosine, tangent, arccosine, arcsine, arctangent, log, log base 10, and pi.
No bugs found.
Limitations- Only two variable equations can be performed. No Parenthesis support.

Download

11.1.06

Calaculatus

I have just now started my newest project.

It is called 'Calculatus.' It is an open-source calculator program, by me!
Just an FYI: The name is created because is is like a bunch of numbers are screaming, 'Calculate us!' I should shut up with my strange corniness.


So, you can go to the Calculatus page here: www.calculatus.blogspot.com, and download it there! <(^.^)>




I am getting sick of this new school schedule. It is always a releif to come home and learn more about computer programming. Then, I usually find myself watching publicans Crisis (only 2 more episodes left!).

So, I am eager to get the Calculatus page set up.
BYE

9.1.06

Surface Area Program

I just finished writing a program in C++ that will tell you the surface area of either a circle, triangle, or rectangle/square.

Here is the source code that was used, I don't care what you do with it (I guess this makes it open source <(*.*)> [The indention is probably way off after copying it into here.]):



//
// The 'Area Finder' is a program that will find the area
// of a circle, rectangle or triangle.
//
#include
#include
#include
using namespace std;

int main(int nNumberofArgs, char* pszArgs[])
{
// Circle, triangle, or rectangle


char choice;
cout << "Please choose:\nPress (c) to find the area of a circle.\nPress (r) to find the area of a rectangle.\nPress (t) to find the area of a triangle.\n>>";
cin >> choice;

if (choice == 'c' || choice == 'C')
{
//Area of circle
//Ask for radius, gather
double circleRadius;
cout<<"You have chosen the area of a circle.\n";
cout<<"Please input the length of the:\nRadius>>";
cin >> circleRadius;

//Calculate circle's area
double circleSubArea;
circleSubArea = circleRadius * circleRadius;

double circleArea;
circleArea = circleSubArea * 3.14159265;

//Output circle area answer
cout<<"The circle's area is: ";
cout<< circleArea << endl;

system("PAUSE");
return 0;
}
if (choice == 't' || choice == 'T')
{
//Area of triangle
//Ask for base and height, gather
double triangleBase;
cout <<"You have chosen the area of a triangle\n";
cout <<"Please enter the:\nBase>>";
cin >> triangleBase;
double triangleHeight;
cout <<"Height>>";
cin >> triangleHeight;

//Calculate area of triangle
double triangleSubArea;
triangleSubArea = 0.5 * triangleBase;

double triangleArea;
triangleArea = triangleHeight * triangleSubArea;

//Output triangle area answer
cout <<"The area of the triangle is: ";
cout << triangleArea << endl;

system("PAUSE");
return 0;
}
if (choice == 'r' || choice == 'R')
{
//Area of rectangle
//Ask for base and height, gather
double rectangleBase;
cout <<"You have chosen the area of a rectangle\n";
cout <<"Please enter the:\nBase>>";
cin >> rectangleBase;
double rectangleHeight;
cout <<"Height>>";
cin >> rectangleHeight;

//Calculate area of rectangle
double rectangleArea;
rectangleArea = rectangleBase * rectangleHeight;

//Output rectangle area answer
cout <<"The area of the rectangle is: ";
cout << rectangleArea << endl;

system("PAUSE");
return 0;
}
else
{
cout <<"Invalid input.\nPlease make a new selection";

system("PAUSE");
return 0;
}

// wait until user is ready before terminating program
// to allow the user to see the program results
system("PAUSE");
return 0;

}



You can either compile and run the program yourself, or if you don't know how or are too lazy to do that, you can always just download the .exe here: Surface Area Finder.

Enjoy <(^_^)>

8.1.06

First C++ Program

I went to Borders late last night. I finally had a golden opportunity to use my Christmas money. My mom couldn't complain either, I mean, it's books!

So, I looked around for a bit. I looked in the manga section, and picked up Chobits Vol. 3-6. Since I had my 30% coupon, it wouldn't be such a big dent in my piggy bank. I passed my mom and sister, and they said it was about time to leave, but I had one more thing to check up on first, computer books. I went straight there, and looked through them, quickly. I scanned and saw C# programming books. I though, "Hmmm, I had to return the C# programming book to the library, so I don't have such a good resource for programming anymore." I checked the price. $25. "That's a good price, I wonder..." My eyes scanned to the next section of programming books, it was C++. "I've been wanting to learn C++, maybe I should get this instead." So, I put the C# book back and pick up the C++ book, still only $25.

I sped to put back all but one of the Chobits books. I kept vol. 3. I went to the check out. Right before handing the cashier the coupon I had, I noticed that it said "30% off one book." Heh heh, good thing I put back those Chobits, and I got something that will earn me more of a discount, eh?

So, I get home and start into my C++ book. I read, read, read. I soon come to a section where it says to type what is written in the box into the source code editor. So, I copy down exactly what the book says to. This copying was rather good, I got to see and remember the elements of a basic C++ program. Since I don't quite consider copying actually writing your own, this program didn't count. After countless errors, and rude forum folk, I got this program to run. FINALLY!

Now, since I wanted to create my own program that was 100% original, I started thinking through common math formulas. The Pythagorean Theorem popped into my head, so I decided that I would write a program that would solve for side 'c' of the Pythagorean Theorem. I did the 'a' squared and 'b' squared parts of the coding quickly, without errors. Soon, it was time for the square root. Unfortunately, I haven't gotten to any part in my book yet that discusses how to square root with C++ coding, so I searched the net, and soon found what I was looking for.

Now, I have my completed 'Pythagorean Theorem' program! Feel free to use it, distribute it, whatever, I don't care. But, if you can somehow find a way to scam people, and sell it, please give me some of your funds.. heh heh.

Here is the program: Pythagorean Theorem.

Enjoy <(^_^)>

24.12.05

The Dating Game

I have successfully written my first program! Yay! This C# book is coming into use!

You can download the program here: The Dating Game

It's pretty fun. All you do is answer questions that the computer asks you. Rather entertaining, eh?

Hehe, at least it's interactive.

If you want the Palm version of this program,(I don't know exactly why you would)get that here: Palm Dating Game

Enjoy!

Oh yes, this software is © by me, Ryan Alspaugh, 2005.

Now, Enjoy.

23.12.05

Break

Finals are over.
Semester one is over.
Stress is temporarily over.
Christmas is beginning.

It is now Christmas break at school and all seven of my finals are completed. What a nice thing to just relax.

Last night, I went to the local library and I got some books, manga, and movies. I looked for the Ghost World soundtrack CD, but it was nowhere to be found. I got two books on computer stuff. The first one is about CSS (Cascading Style Sheets) the second is on C#. C sharp is kinda difficult, I think I'll just wait until I take the computer programming classes at school to get into any type of C programming.

The main reason I went to the library was to get a movie that I had on hold called Hero. It is a new Chinese Kung-fu movie. It is just gorgeous! The camera shots and fight scenes were amazing! I feel so fulfilled after watching that film! I highly recommend it.

I also got my hand upon Akria, the classic anime movie. I am eager to watch it. I actually haven't seen it yet. I grabbed some manga while we were there too. I got the first three Demon Diary books, volume one of somthing I can't remember the name, and also Dark Water by Koji Suzuki, the author of The Ring Trilogy.

Yesterday, I started to tip my toes into MS-Dos commands. It was rather entertaining. I learned the 'TREE', 'PRINT', and 'PING' commands. I really want to learn more about the 'PING' command, but my dad won't let me mess with the DOS on our computer. He is afraid I will ruin something... Heh.

I also went to Steak 'n Shake last night and got a wonderful meal. Their steak burgers are the best burgers in the world. I also got a huge banana shake to wash it down. MMMMM-MMMM! Their chili is a little disturbing though. It is 1 part oil and 1 part brown sludge and beans. I was sitting there stirring mine for a long time trying to get the oil to blend with the sludge and beans. After adding in my oyster crackers, it wasn't half bad. All you had to do was get over the fact that it kinda slides down your throat whether you want it to or not.

So, I am hoping for a good break and a good Christmas. I am also wishing you happy holidays. Ryo, you too, enjoy the warmth in Alabama.

*Jealous!*

Dessart in the Desert © 2007 by Ryan Alspaugh