Wednesday, November 3, 2010

Program Name: Minimum value

Program Name: Minimum value

#include
#include
int a[12],j,k,n,i,loc;
void main()
{
clrscr();
printf("\r\n How many elements in Array??");
scanf("\t\t%d",&n);
for(i=1;i<=n;i++)
{
printf("\n\nEnter your value a[%d]= ",i);
scanf("\t%d",&a[i]);
}
loc=1;
j=a[1];
for(k=2;k<=n; k++)
{
if(j>a[k])
{
j=a[k];
loc=k;
}
}
printf("\nYour entered minimum value %d",j);
printf("\nYour minimum location %d in Array",loc);
printf("\n Jabed, E-15, Roll-49");
getch();
}

Tuesday, October 5, 2010

Title :
Write a assembly language program to display two messages on the screen for 20 time.
Algorithm :
1. Start the process
2. Declare the model as small
3. Take 100 sized stack
4. Declare the messages to display in 20 times
5. Load the effective address of the message in Dx register
6. Display and execute the message form Dx
7. Return to DOS mode
8. End of process.


Programming Code :
model small
stack 100h
data
msg1 db ‘Bangladesh University $’
msg2 db ‘Dhaka $’
code
main proc
mov ax, @ data
mov ds, ax
lea dx, msg1
lab1:
int 21h
loop lab1
mov cx,20
lea dx, msg2
mov ah, 9
lab2:
int 21h
loop lab2
mov ah, 4ch
int 21h
main endp
end main


Output :

Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka Dhaka

Saturday, September 18, 2010

Write an assembly language program to display a sequence of character on the screen.

Algorithm :

Step 1: Start the process.

Step 2: Declare the model as small.

Step 3: Take 100 size stacks.

Step 4: Declare the message to display a sequence of character on the screen.

Step 5: Load the effective address of the message in Dx register.

Step 6: Display and execute the message from Dx register.

Step 7: Return to DOS mode.

Step 8: End of program.


Programming Code :

model small
stack 100h
data
msg db ‘Hello Bangladesh., $’
code
main proc
mov ax, @ data
mov ds, ax
lea dx, msg
mov ah, 9
int 21h
mov ah, 4ch
int 21h
main endp
end main


Output / Result :

Hello Bangladesh.


Process :

Go to run “ Press Windows logo + r ” then type “cmd” and press "Enter".
Then type in dos window:

D:
D:cd masm
D:masm>edit ( Type the programming code and save with .asm.
Exit from masm window )
D: masm>masm filename.asm




D:masm>link filename.obj




D:masm>filename.exe

Then show “Hello Bangladesh.”

Wednesday, July 14, 2010

Do you Know About Fractal art?


Fractal art is created by calculating fractal objects and representing the calculation results as still images, animations, music, or other media. Fractal art is usually created indirectly with the assistance of fractal-generating software, iterating through three phases: setting parameter...s of appropriate fractal software, executing the possibly lengthy calculation and evaluating the product. In some cases, other graphics programs are used to further modify the images produced. This is called post-processing.
The funniest thing about fractal art that it is made by programmers.

Simple and Complete E-commerce PL/SQL Code

This is a Database of e-commerce solution. This database is quite simple but complete one.  The script (.sql file) contain all the nece...