Engineering Professional Practice: Sample Case and a solution
Case: A client came to a designer’s and asked to design a multistoried building. The soil type is found not suitable for that type of structure. The designer hesitated to design a building. The revealed his/her intention as that he/she actually is not going to build that structure but he/she wanted to collect fund from outside sources on behalf of that design and ...
Case studies based on Codes of Ethics, Tort, Liability and Negligence in Professional Engineering
Er Satyaman Shrestha was working as a Project Engineer in a road construction project in Chitwan. Er Ramesh Thapa, close friend of Satyaman was also working as a site engineer in the same project for a construction company. Construction work was in full swing.
The oath of an engineer in his profession, this is a master piece of the work.
I am an ENGINEER. In my profession I take deep pride, but without vainglory; to it owe solemn obligations that I am eager to fulfill.
As an Engineer, I will participate in none but honest enterprise. To him that he has engaged my service, as employer or client, I will give the utmost of performance and ...
This was a Computer Graphics Project named Bar Diagram required in the coursework. [A Project work in Computer Graphics]
#include
#include
#include
#include
#include
#include
/*FUNCTION FOR READING DATA FROM USER*/
void input(float ,float,float,float,float,float);
/*FUNCTION FOR DRAWING BAR DIAGRAM*/
void bar1 (float);
void bar2 (float);
void bar3 (float);
void bar4 (float);
void bar5 (float);
void bar6 (float);
/* MAIN PROGRAM */
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,”c:\\tc\\bgi”);
float sub1,sub2,sub3,sub4,sub5,sub6;
setbkcolor(9);
setcolor(BLUE);
settextstyle(3,0,2);
outtextxy(getmaxx()/2-130,0,”TRIBHUWAN UNIVERSITY”);
settextstyle(3,0,2);
outtextxy(getmaxx()/2-145,30,”INSTITUTE OF ENGINEERING”);
settextstyle(3,0,3);
outtextxy(getmaxx()/2-155,60,”WESTERN REGION CAMPUS”);
settextstyle(3,0,1);
outtextxy(getmaxx()/2-135,92,”LAMACHAUR-16,POKHARA”);
settextstyle(3,0,2);
outtextxy(getmaxy()/2+50,getmaxy()/2,”A”);
settextstyle(3,0,2);
outtextxy(getmaxy()/2+15,260,”PROJECT”);
settextstyle(3,0,2);
outtextxy(getmaxy()/2+40,getmaxy()/2+40,”ON”);
settextstyle(3,0,1);
outtextxy(getmaxy()/2-50,300,”COMPUTER GRAPHICS”);
outtextxy(getmaxx()-600,getmaxy()-140,”BY”);
outtextxy(getmaxx()-600,getmaxy()-110,”Archana Shrestha”);
outtextxy(getmaxx()-600,getmaxy()-80,”402/BEX/062″);
delay(2500);
cleardevice();
settextstyle(7,0,3);
outtextxy(getmaxx()/2-250,getmaxy()/2,”PROGRAM TO DRAW A BAR DIAGRAM”);
delay(1500);
input(sub1,sub2,sub3,sub4,sub5,sub6);
getch();
}
/*END OF MAIN PROGRAM*/
/*FUNCTION FOR READING DATA FROM USER */
void input(float ...
Write an assembly program to READ YOUR NAME AND DISPLAY IT IN NEWLINE
title read and display name
dosseg
.model small
.stack 100H
.code
main proc
mov ax, @data ; initialize ds register
mov ds, ax
mov ah, 09h ; display message1
mov dx, offset msg1
int 21h
mov ah, 0ah ; read string
mov dx, offset string
int 21h
mov alt, 09h ; your name is
mov dx, offset msg2
int 21h
mov ah, 09h ; string output
mov dx, offset string
int 21h
mov ax, 4C00H ; return to ...
Write an assembly program to REVERSE THE GIVEN DIGITS
title to reverse the given digits
dosseg
.model small
.stack 100H
.code
main proc
mov ax, @data ; initialize ds register
mov ds, ax
mov ax, value1 ; move number to ax
mov cx, 0000h ; remainder r = 0
mov bx, 0010h ; for multiplication by 10h
BACK: mov dx, 0000h ; clear upper 16-bits
div bx ; divide the number ie dx= remainder, ax = quotient
push ax ; push remainder and quotient ...
Write an assembly program to COPY A BLOCK OF DATA FROM ONE MEMORY TO ANOTHER
title copy a block of data from one memory to another
dosseg
.model small
.stack 100H
.code
main proc
mov ax, @data ; initialize ds register
mov ds, ax
mov SI, offset array1 ; source index
mov di, offset array2 ; destination index
mov cx, 06H ; for 6 data ie cx is implicit counter
BACK: mov al, [SI]
mov [di], al ; move [di], [si]
inc si
inc di
loop ...
Mouse play a very important role in development of Computer Graphics and to implement graphics in the computer system. Mouse is a pointing input device that points out item(s) by cursor. The cursor can be move from one position to another, this movement of cursor is due to the movement of mouse in the plane surface. The movement of mouse occurs only in two directions- vertical and horizontal.
Write an assembly language program (Intel 8086) to READ A STRING, CONVERT IT INTO UPPER CASE AND FINALLY DISPLAY THE CONVERTED STRING
title ALP to read a string, convert it into upper case and display the converted string
dosseg
.model small
.stack 100H
.code
main proc far
mov ax, @data ; initialize ds register
mov ds, ax
mov ah, 0ah ; read string
lea ax, param
int 21h
mov bx, 00 ; convert to upper string
mov cx, act_len
L2: mov ah, ...
Evaluating ordinary differential equations by RK-4 or classical method both order first and second
//To compute ordinary differential equations by RK-4 or classical method for order first
#include
#include
#include
void main()
{
cout<<”\t first order R-K 4th Classical Method\t”<
double h,n,m1,i,m2,m3,m4,x[100],y[100];
cout<<”Number of intervals “;
cin>>n;
cout<
cout<<”Enter the value of h”<<<”h = “;
cin>>h;
cout<<”Enter the value of x0″<<<”x0 = “;
cin>>x[0];
cout<<”Enter the value of y0″<<<”y0 = “;
cin>>y[0];
cout<
for(i=0;i<=n;i++)
{
x[i+1]=x[i]+h;
m1=h*.5*(1+x[i])*(y[i]*y[i]);
m2=h*.5*(1+(x[i]+.5*h))*(y[i]+m1*.5*h)*(y[i]+m1*.5*h);
m3=h*.5*(1+(x[i]+.5*h))*(y[i]+m2*.5*h)*(y[i]+m2*.5*h);
m4=h*.5*(1+(x[i]+h))*(y[i]+m3*h)*(y[i]+m3*h);
y[i+1]=y[i]+(m1+2.0*m2+2.0*m3+m4)/6;
cout<<”x”<<<”= “<<
cout<<”y”<<<”= “<<
cout<
}
getch();
}
// To compute ordinary differential equations by RK-4 or classical method for order second
#include
#include
#include
void ...