About Me

Friday, October 10, 2008


This is a program that will ask the user a value for the radius R. Then present a menu to the user with choices [a] radius, [b] circumference, [c] area of circle. If the user inputs letter 'a' or 'A', it will print at the center of the screen the radius. If the user presses letter 'b' or 'B', the circumference will be shown at the center of the screen. And if 'c' or 'C' is pressed, the area of the circle is shown also in the center of the screen. The the program terminates. (note: I'm using 'switch stat
ement')




CODES:

#include

#include

/* EXERCISE 6-1 */
main()

{
char select;
float radius;
const float pi=3.14159;
again:
clrscr();
printf("Please enter a value for radius: ");
scanf("%f", &radius);
printf("\n\nMenu Options (Circle): \n");
printf("[a] radius \n");
printf("[b] circumference \n");
printf("[c] area \n");
select=getche();
switch(select)
{
case 'a':
case 'A':
gotoxy(34,12);
printf("Radius: %.2f",radius);
break;
case 'b':
case 'B':
gotoxy(32,12);
printf("Circumference is: %.2f",2*pi*radius);
break;
case 'c':
case 'C':
gotoxy(34,12);
printf("Area is: %.2f", pi*radius*radius);
break;
default:
printf("\n\nInvalid Character!");
printf("Please try again!");
goto again;
}
getch();
}




OUTPUT:




Sunday, October 5, 2008

Question: Research in the net the most recent assembler. Describe its history, nature and applications. Evaluate this assembler from its predecessor.
Answer: The history is the 1st Assembly was held from July 24th to July 26th 1992, in Kaunianien, organized by the Amiga demo groups Complex and rebels, and the PC demo group Future Crew. It hed over 5000 visitors and 3500 computers on the ice rink.

Thursday, September 25, 2008

loVe...

  • You will never expect love at it's best, but whoever is destined will always prevail. Remember, there can only be one true love for you to exist. It will not be someone you expect but rather you deserve.
  • Love knows no reasons, love knows no lies, love diffies all reasons, love has no eyes but love is not blind, love sees but doesn't mind.
  • Love change me the way I think, the way I act, the way I decide. Sometimes I even go againstmy principles and belief in life. Loving doesn't always mean I'll be happy. Sometimes, all it provide me is pain and misery. Yet, I was blinded by strong emotions that I fail to see reality. Sometimes, letting go is the answer and it hurts like hell. But, I will soon realize that it's better to see the person I love to be happy with someone else than lonely with me.

Tuesday, September 23, 2008

Question: Justify what situations or applications programmers will rather use Assembly Languages than Higher Level Progamming Languages and vice versa.
Answer: For me, I will prefer the higher level of programming language because it is more structured and most of all, it very close to the spoken language and are more intuitive than the assembly langauge. It is easier to read and can typically sometimes work on many different computer operating systems.

Life w/ God...

  • Although each day brings challenges and things that are unknown, you needn't face them by yourself or deal with them alone, for others care about you and will close you in prayer, and above all, GOD will always guide you for His love is always there.
  • The Lord is somewhere above to give you His grace and send you His love. Whatever your cross, whatever your pain, God always sends rainbow after the rain.
  • God will either give you what you ask, or something far better than what you wished. Keep on praying and be thankful, because God's answers are wiser than our prayers.
  • God is a friend who is always besides us. Every time we are feeling lost, His light will surely guide us and anywhere we go, His love will always reach us.
  • Life comes just once, let's make the most of it. God didn't give us everything to enjoy life but He gave us life to enjoy everything.
  • I'm your friend, but God is your best friend, you can cry to me but God can dry your tears, I love you but God loves you deeper, you can hold my hand but God can carry you better.
  • Leave something for God but never leave God for something, 'cause in life, something will leave you, but God will always be there for you.
  • When life seems so tough, go on. When things go wrong, move on. Bear in mind that God give us strength to persevere, not to surrender.
  • If we lose something, we lose it for a reason. That reason might hard t understand, but whatever it is, we just have to believe that God takes away when He has something better to give.
  • We shrink from this life challenges, we plead for watered pastures never touched by pain, but God will often let us sense our need before he sends His cool refreshing rain.
  • Don't think too much of the problems in life, they are just testpapers given by God to see how much we learn in His subject called "life". If you think you fail, don't worry because He is always ready to give remedial classes, so review through prayers and have the perfect score of happiness.
  • God said: "Don't get tired of doing what is good, don't get discouraged and don't give up, for you will reap a harvest of blessings at the appropriate time."
  • Life is unpredictable. Anything could just happen. It might be succes or a mess but for a long as were learning on the God's side, we will win. He never loses a battle.
a

Monday, September 22, 2008

Question: Research in the net what is the best assembler and why.
Cite the reference.


Answer: An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the computers processor can use to form its basic operations. According to FASM, NASM, and MASM32, the best assemblers are a good all around assembler, great for beginners because of it's simplicity, a mature assembler and has more features than FASM, and a popular choice for coding for Windows.

Tuesday, September 16, 2008

the truth one

I was walking over a tall tree
when suddenly a fruit fell down in my head
and it did hurt me.
I look up at the tree and realized:
"do I need to be hurt first before I look up above?"