Friday, October 10, 2008

Question#6

Question#6: Age Calculator: Program asks for age and prints how many months, weeks, days, hours and minutes old you are.

#include /* Programmed by Harvey Losin *//*
http://www.bikoy.com/harvey *//* webmaster@bikoy.com */main(){float years;clrscr();printf("Enter your age in years: ");scanf("%f",&years);printf ("\nYou are %.0f months old", years * 12);printf ("\nYou are %.0f weeks old", years * 48);printf ("\nYou are %.0f days old", years * 365);printf ("\nYou are %.0f hours old", years * 8760);printf ("\nYou are %.0f minutes old", years * 525600);getch();}

Output:




Monday, October 6, 2008

Question #5

Question#5:Research in the net the most recent assembler. Describe its history, nature and applications. Evaluate this assembler from its predecessor.

Answer:Many assemblers support macros, programmer-defined symbols that stand for some sequence of text lines. This sequence of text lines may include a sequence of instructions, or a sequence of data storage pseudo-ops. Once a macro has been defined using the appropriate pseudo-op, its name may be used in place of an mnemonic. When the assembler processes such a statement, it replaces the statement with the text lines associated with that macro, then processes them just as though they had appeared in the source code file all along (including, in better assemblers, expansion of any macros appearing in the replacement text).

Aplication:Keyboard and mouse macros that are created using an application's built-in macro features are sometimes called application macros. They are sometimes created by carrying out the sequence once and letting the application record the actions. An underlying macro programming language, most commonly a Scripting language, with direct access to the features of the application may also exist.
The programmers' text editor Emacs (short for "editing macros") follows this idea to a conclusion. In effect, most of the editor is made of macros. Emacs was originally devised as a set of macros in the editing language TECO; it was later ported to dialects of Lisp.
Visual Basic for Applications (VBA) is a programming language included in Microsoft Office and some other applications. However, its function has evolved from and replaced the macro languages which were originally included in some of these applications.

Tuesday, September 23, 2008

question#4

Question#4: Justify what situations or applications programmers will rather use Assembly Languages than Higher Level Progamming Languages and vice versa.

Answer: Many programmers choose assembly language because of its quiet small compared in the high-level languages because its indicates that one generally doesn’t choose assembly language. However, there are situations where it may not be convenient, efficient, or possible to write programs in high-level languages. … Assembly language has a number of advantages over machine code aside from the obvious increase in readability. One is that the use of symbolic names for data and instruction labels frees the programmer from computing and recomputing the memory locations whenever a change is made in a program.

Monday, September 22, 2008

Question#3

Question#3: Research in the net what is the best assembler and why. Answer:
FASM is the best and good assembler because it is known as the fast speed. FASM is a multi-pass assembler. It makes extensive code size optimization, and allows more forward referencing. A usual FASM construct is defining data or procedures only if they are used somewhere in the code, something that in most languages is done per-object by the linker. FASM or Flat Assembler is a free and open source Intel-style assembler supporting the IA-32 and x86-64 architectures, size optimizations, OS portability, and macro capabilities .It is a low-level assemblerand uses few command-line options.FASM contains bindings to the Windows GUI and OpenGL.

Sunday, September 21, 2008

Question#2

Question #2: Research in the net usual applications done in assembly language. Describe these applications briefly and cite the efficiency and effectiveness of these applications.

Answer: assembly language is a low-level language for programming computers It implements a symbolic representation of the numeric machine codes and other constants that is needed to program a particular CPU architecture. And it is developed in 1950s. And it is second generation programming language. and it is not only a single language but rather it is a group of language. People must choose assembly language because of its quiet small compared to the amount done in high-level languages indicates that one generally doesn’t choose assembly language.

Sunday, September 14, 2008

Question#1

QUESTION: what topic(s) in MCS213 do you find easy and/or difficult and why?

ANSWER: the topic(s) i found difficulty in MCS213 is about in programming, because it so hard for me to program especially when our teacher assigned us to do program about conversion.
and the topics that i found easy is about blogging because the instruction is very easy to undestand,

Tuesday, September 9, 2008