In this post, I will be discussing how to add page number from the desired page in MS Word. When we write report of some projects, there will be abstract, acknowledgement, table of contents and so on. In this case, probably we desire to include page no. in the document from introduction part of the report. It is just an example. There can be various cases where we actually require to add page no. from desired place. So here is the solution for...
AITB International Conference, 2019
Kathmandu, Nepal
My Youtube Channel
Please Subscribe
Flag of Nepal
Built in OpenGL
World Covid-19 Data Visualization
Choropleth map
Word Cloud in Python
With masked image
Saturday, February 24, 2018
How to import external template to the blogger?

There are some templates available for free to the user by blogger but those templates might not be sufficient for many of the users. So, we may want to import our own template or the template downloaded from external sources. There are many websites which provide templates for free of cost. So, in this article we will be discussing the way of importing templates from...
How to change favicon in blogger ?

What is favicon?
favicon (favorite icon is a small little icon used to identify your blog in the browser. When someone bookmark your blog then this favicon will be displayed in his/her bookmark list so that a particular blog can be idenified easily. It also appears in the tab of browser in which your blog is opened. Hence, try to select icon which will be relevant to your...
Friday, February 23, 2018
Tuesday, January 30, 2018
How to calculate log base 2 ?
The calculator we use, we can find the logarithmic operations like log base e and log base 10. So, the question arises what shall we do if we want to calculate log base 2 or log to the base any number other than log base e and log base 10. The answer is within your calculator. You just need to recall a logarithmic formula read in mathematics. The formula is :
...
Friday, January 26, 2018
Is drag and drop the future of programming?

Drag and drop in
programming means selecting an object from the given toolbox holding the mouse
click, moving it (dragging) on the form given in the software and then finally
placing (dropping) at the desired place on the form. This feature comes with
GUI (Graphical User Interface) based programming. A form is given to the
programmer, and a toolbox containing various...
Saturday, January 20, 2018
Computer Organisation & Architecture
PROGRAM IN MATLAB FOR DIVISION OF TWO UNSIGNED INTEGER BINARY NUMBERS
(N-BIT NUMBERS)
. To implement non-restoring division algorithm in digital computer
function lab5_coa
n=input('enter n:');
a=input('enter a:');
b=input('enter b:');
c=b;
q=a;
carry=0;
for i=1:1:n
a(1,i)=0;
end
for i=n:-1:1
if(c(1,i)==1)
c(1,i)=0;
else
...
Computer Organisation & Architecture
PROGRAM IN MATLAB FOR DIVISION OF TWO UNSIGNED INTEGER BINARY NUMBERS (N-BIT NUMBERS)
. To implement restoring division algorithm in digital computer
function div
n=input('enter n:');
a=input('enter a:');
b=input('enter b:');
c=b;
q=a;
carry=0;
for i=1:1:n
a(1,i)=0;
end
for i=n:-1:1
if(c(1,i)==1)
c(1,i)=0;
else
...
Computer Organisation & Architecture
PROGRAM IN MATLAB FOR MULTIPLICATION OF TWO UNSIGNED INTEGER BINARY NUMBERS BY PARTIAL-PRODUCT METHOD (4BITS NUMBERS)
function lab2_coa
a=input('enter a:');
b=input('enter b:');
r=[0 0 0 0 0 0 0 0];
c=0;
for j=4:-1:1
if(b(1,j)==0)
continue;
end
for i=4:-1:1
sum=xor(xor(r(1,i+j),a(1,i)),c);
carry=or(and(r(1,i+j),a(1,i)),and(xor(r(1,i+j),a(1,i)),c));
...
Computer Organisation & Architecture
PROGRAM IN MATLAB FOR SUBTRACTION OF TWO UNSIGNED INTEGER BINARY NUMBER (4BITS NUMBERS)
function lab3_coa
a=input('enter a:');
b=input('enter b:');
c=0;
temp=a;
for i=4:-1:1
if(b(1,i)==1)
b(1,i)=0;
else
b(1,i)=1;
end
end
a=[0 0 0 1];
for i=4:-1:1
sum=xor(xor(a(1,i),b(1,i)),c);
carry=or(and(a(1,i),b(1,i)),and(xor(a(1,i),b(1,i)),c));
c=carry;
result(1,i)=sum;
end
a=temp;
b=result;
c=0;
for...
Computer Organisation & Architecture
PROGRAM IN MATLAB FOR ADDITION OF TWO UNSIGNED INTEGER BINARY NUMBER (4-BITS NUMBERS)
function lab0_coa
a=input('enter a:');
b=input('enter b:');
c=input('enter c:');
for i=4:-1:1
sum=xor(xor(a(1,i),b(1,i)),c);
carry=or(and(a(1,i),b(1,i)),and(xor(a(1,i),b(1,i)),c));
c=carry;
result(1,i)=sum;
end
disp(result);
disp(c);
en...
Tuesday, December 26, 2017
Program for 2D reflection along Y-axis (using graphics.h)

#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include<math.h>
int main()
{
int gm;
int gd=DETECT;
int x1,x2,x3,y1,y2,y3;
//initgraph(&gd,&gm,"c:\tc\bg:");
...
Program for 2D reflection in C along X-axis (using graphics.h)

#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include<math.h>
int main()
{
int gm;
int gd=DETECT;
int x1,x2,x3,y1,y2,y3;
//initgraph(&gd,&gm,"c:\tc\bg:");
...
Program for 2D schearing in C (using graphics.h)
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include<math.h>
int main()
{
int gm;
int gd=DETECT;
int x1,x2,x3,y1,y2,y3,nx1,nx2,nx3,ny1,ny2,ny3;
int shx,shy;
initwindow(1200,600);
...
Program for 2D scaling in c (using graphics.h)
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include<math.h>
int main()
{
int gm;
int gd=DETECT;
int x1,x2,x3,y1,y2,y3;
int sx,sy;
initwindow(1200,600);
...
Program for 2D translation in C (using graphics.h)
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include<math.h>
int main()
{
int gm;
int gd=DETECT;
int x1,x2,x3,y1,y2,y3,nx1,nx2,nx3,ny1,ny2,ny3;
int xt,yt;
initwindow(1200,600);
...
Tuesday, December 19, 2017
C++ program to draw a circle and ellipse in a single window (using graphics.h)

#include <graphics.h>
#include <iostream>
#include <conio.h>
using namespace std;
void circle();
void ellipse();
void plotpoints(int,int,int,int);
int main(){
int gdriver = DETECT, gmode;
initgraph(&gdriver,&gmode,"c:\\turboc3\\bgi");
circle();
ellipse();
getch();
closegraph();
return 0;
}
void circle()
{
int x,y,p,xc,yc,r;
...
Monday, December 18, 2017
C++ program to draw an ellipse using Mid-point algorithm (using graphics.h)
#include<math.h>
#include <graphics.h>
#include <iostream>
#include <conio.h>
using namespace std;
void plotpoints(int,int,int,int);
int main(){
int xc,yc,x,y,p,rx,ry;
int gdriver = DETECT, gmode;
initgraph(&gdriver,&gmode,"c:\\turboc3\\bgi");
cout<<"Enter co-ordinate for centre of ellipse:";
cin>>xc>>yc;
cout<<"Enter the value of rx and ry of ellipse: ";
cin>>rx>>ry;
x=0;
y=ry;
p=ry*ry-ry*rx*rx+(1/4)*rx*rx;
while((2*ry*ry*x)<(2*rx*rx*y))
{
...
C++ program to draw a circle using Mid-point algorithm (using graphics.h)
#include <graphics.h>
#include <iostream>
#include <conio.h>
using namespace std;
int main(){
int xc,yc,x,y,p,r;
int gdriver = DETECT, gmode;
initgraph(&gdriver,&gmode,"c:\\turboc3\\bgi");
cout<<"Enter co-ordinate for centre of circle:";
cin>>xc>>yc;
cout<<"Enter radius of circle: ";
cin>>r;
x = 0;
y = r;
p = 1-r;
while(x<=y){
if(p<0){
x=x+1;
y=y+0;
p=p+2*x +1;
}
else{
x=x+1;
y=y-1;
p=p+2*x-2*y+1;
}
putpixel(xc+x,yc+y,WHITE);
putpixel(xc+y,yc+x,WHITE);
putpixel(xc+x,yc-y,WHITE);
putpixel(xc+y,yc-x,WHITE);
putpixel(xc-x,yc-y,WHITE);
putpixel(xc-y,yc-x,WHITE);
putpixel(xc-x,yc+y,WHITE);
putpixel(xc-y,yc+x,WHITE);
delay(100);
}
getch();
closegraph();
return...
C++ program to draw a line using Bresenham's algorithm (using graphics.h)
#include<iostream>
#include<graphics.h>
using namespace std;
void drawline(int,int,int,int);
int main(){
int gdriver=DETECT, gmode, x1, y1, x2, y2;
initgraph(&gdriver, &gmode, "c:\\turboc3\\bgi");
cout<<"Enter co-ordinates of start point: ";
cin>>x1>>y1;
cout<<"Enter co-ordinates of end point: ";
cin>>x2>>y2;
...
C++ Program for drawing line using DAA algorithm (using graphics.h)
#include <graphics.h>
#include <iostream>
#include <math.h>
using namespace std;
int main( )
{
float x,y,x1,y1,x2,y2,dx,dy,step;
int i,gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
cout<<"Enter the value of x1 and y1 : ";
cin>>x1>>y1;
cout<<"Enter the value of x2 and y2: ";
cin>>x2>>y2;
...
Thursday, December 14, 2017
Android app for my blog (Vj blog)

You can directly access my blog in your android phone through this app.
Click here to downlo...
Assistant Maya

This android app will help you get your daily class routine delivered to you in the form of voice and also you can schedule your daily plans so that Maya can recall them for you whenever you require.
Click here to downlo...
Wednesday, December 13, 2017
Sunday, October 29, 2017
Exploring Thailand: A Five-Day Adventure

It all started one year back (the planning, preparation and some sorts of online researches about that particular country). But because it was a foreign tour and it was the first time for all of us, it took quite a bit more time to gather all the informations, thus it could not happened at that time. we were five members including me, my brother, sister and my parents. Managing...
Thursday, September 28, 2017
Monday, August 7, 2017
CONVERSION FROM LOWER TO UPPERCASE IN 8086 PROGRAMMING
TITLE LOWER TO UPPERCASE
.MODEL SMALL
.STACK 64
.DATA
MAXCHR DB 20
ACTCHR DB ?
ACTSTR DB 20 DUP(?)
RESULT DB 20 DUP(?)
.CODE
MAIN PROC FAR
MOV AX,@DATA
MOV DS,AX
MOV DX,OFFSET MAXCHR
MOV AH,0AH
INT 21H
LEA SI,ACTSTR
LEA DI,RESULT
MOV CX,0000H
MOV BX,0000H
LEA BX,ACTCHR
MOV CX,[BX]
L2:
MOV AL,[SI]
CMP AL,61H
JB L1
CMP AL,7AH
JA L1
SUB AL,20H
L1:
MOV [DI],AL
INC SI
INC DI
LOOP L2
MOV DL,0AH
MOV AH,02H
INT 21H
LEA DX,RESULT
MOV AH,09H
INT 21H
MOV...
CONVERSION FROM UPPER TO LOWERCASE IN 8086 PROGRAMMING
TITLE UPPER TO LOWER CASE
.MODEL SMALL
.STACK 64
.DATA
MAXCHR DB 20
ACTCHR DB ?
ACTSTR DB 20 DUP(?)
RESULT DB 20 DUP('$')
.CODE
MAIN PROC FAR
MOV AX,@DATA
MOV DS,AX
MOV DX,OFFSET MAXCHR
MOV AH,0AH
INT 21H
LEA SI,ACTSTR
LEA DI,RESULT
MOV CX,0000H
MOV BX,0000H
LEA BX,ACTCHR
MOV CX,[BX]
L2:
MOV AL,[SI]
CMP AL,41H
JB L1
CMP AL,5AH
JA L1
ADD AL,20H
L1:
MOV [DI],AL
INC SI
INC DI
LOOP L2
MOV DL,0AH
MOV AH,02H
INT 21H
LEA DX,RESULT
MOV AH,09H
INT 21H
MOV...
Monday, July 31, 2017
Tic tac toe game in C
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include <windows.h>
int board[10] = {2,2,2,2,2,2,2,2,2,2};
int turn = 1,flag = 0;
int player,comp;
void menu();
void go(int n);
void start_game();
void check_draw();
void draw_board();
void player_first();
void put_X_O(char ch,int pos);
COORD coord={0,0}; // this is global variable
...