Dr. B. R. Ambedkar Institute of Technology Port Blair: Index
Dr. B. R. Ambedkar Institute of Technology Port Blair: Index
Dr. B. R. Ambedkar Institute of Technology Port Blair: Index
AMBEDKAR INSTITUTE OF
TECHNOLOGY PORT BLAIR
ADMISSION NO. –
202010664
INDEX
S NAME OF PAGE DATE OF DATE OF REMARKS
N0. EXPERIMENT NO. EXPERIMENT SUBMISSION
EXPERIMENT -1
INTERNAL COMMANDS
These commands are automatic loaded into the memory when operating system is loaded into the
memory. Thus these are also called memory-resident commands. The command available are all
combined together and are stored in Command.com file, which is a executable command file. These
internal command are further grouped according to their properties. Some of them are given below:-
1 VER It displays
the version
of the
windows os
2 CLS This
command is
used to
clean the
screen
3 D: Make to go
to the drive
To create a
new
4 MKDIR or MD directory
under the
current
directory or
drive
5 CD It is used to
change the
working
directory
6 CD.. It is used to
go the
previous
directory
It is used to
list all the
7 DIR sub
directories
and file in
the current
directory
It is use to
display the
system
8 DATE current
date and
prompt to
enter a new
date
This
command is
9 used to
display the
TIME system time
and prompt
to enter a
new time
It is used to
10 COPY CON create a file
a new file
It is used to
11 REN change the
name of a
file
It displays
the content
12 TYPE of current
file
It copies the
file from
13 COPY one
destination
to other
destination
14 DEL It is used to
delete the
files
Displays
15 VOL disk volume
label
EXTERNAL COMMAND
External commands are known as Disk residence commands. Because they can be store with DOS
directory or any disk which is used for getting these commands. Theses commands help to perform
some specific task. These are stored in a secondary storage device. Some important external
commands are given below;-
This command
displays free and used
1 MEM amount of memory in
the computer.
This command is
used for copy
system files to any
2 SYS
disk. The disk
having system files
are known as
Bootable Disk
When we need to
copy a directory
instant of a file from
3 XCOPY one location to
another the we uses
xcopy command.
This command is
much faster than
copy command.
Move command is
used for moving one
4 MOVE
file or multiple files
from one location to
another location or
from one disk to
another disk.
This command is
capable for
5 FC
comparing two set
of files and display
difference between
two files.
This command is
used to check the
6 CHKDSK
status of a disk and
show the report of
result status.
The FIND
command is used to
7 FIND
search a file for a
text string.
PROGRAM:-
#include <stdio.h>
#include <conio.h>
void main()
{ float base, height, area;
printf(“ENTER THE BASE OF THE TRIANGLE”);
scanf(“%f”,&base);
printf (“ENTER THE HEIGHT OF THE TRIANGLE’’);
scanf(“%f”,&height);
area=0.5*base*height;
printf(“THE AREA OF THE TRIANGLE IS :%f”,area);
getch();
}
OUTPUT :-
EXPERIMENT-3
AIM :- Write a c program to find the total and average percentage obtained by a student for 6 subject
PROGRAM :-
#include <stdio.h>
#include<conio.h>
void main()
{ float s1,s2,s3,s4,s5,s6,t,avg;
printf(“\nENTER THE MARKS IN SUB1“);
scanf(“%f”,s1);
printf(“\nENTER THE MARKS IN SUB2“);
scanf(“%f”,s2);
printf(“\nENTER THE MARKS IN SUB3“);
scanf(“%f”,s3);
printf(“\nENTER THE MARKS IN SUB4“);
scanf(“%f”,s4);
printf(“\nENTER THE MARKS IN SUB5“);
scanf(“%f”,s5);
printf(“\nENTER THE MARKS IN SUB6“);
scanf(“%f”,s6);
t=s1+s2+s3+s4+s5+s6;
avg=t/6;
printf(“\nTOTAL MARKS OBTAINED BY STUDENT IS %f”,t);
printf(“\nAVERAGE MARKS OBTAINED BY THE STUDENT IS %f”,avg);
getch();
}
OUTPUT :-