Showing posts with label Forth Semester. Show all posts
Showing posts with label Forth Semester. Show all posts
Unix Lab Programs
- Write a program to count the number of characters in a given string.
- Write a program to find whether the given year is leap year or not?
- Write a program to check whether a given number is even or odd.
- Write a program to find factorial of a given number.
- Write a program to print a string in the reverse order.
- Write a program to count the number of vowels in a given string.
- Write a program to print all prime numbers between m and n(m<n).
- Write a program to check whether a given string is palindrome or not.
- Write a shell Script to assign a file permission to the given file using
- To compresses a file using gzip and pack commands.
- write a menu driven shell script to implement the following UNIX commands.
- To find a given pattern in a list of files of current directory using grep and fgrep commands.
- Write a shell script to create two directories and store five files in one directory using the related commands and to transfer all the files to another directory.
- write a shell script to accept a file name as input and display whether it exits or not. If it exists, then give the details of its attributes like access permission ,its size etc.
write a shell script to accept a file name as input and display whether it exits or not. If it exists, then give the details of its attributes like access permission ,its size etc.
clear
echo "Enter the filename"
read name
echo
echo "File details"
if [ -f $name ]
then
echo "File exists"
echo -n "file size is:"
wc -c $name
echo -n "File type:"
file $name
if [ -r $name -a -w $name -a -x $name ]
then
echo "File is readable writeable and executable"
elif [ -r $name -a -w $name ]
then
echo "File is readable and writable"
elif [ -r $name ]
then
echo "File is read only"
elif [ -w $name ]
then
echo "File is write only "
elif [ -x $name ]
then
echo "File executable only"
else
echo "File not readable ,writable and executable"
fi
else
echo "File does not exist"
fi
OutPut
Enter the filename
file1
File details
File exists
file size is:27 file1
File type:file1: ASCII text
File is readable and writable
echo "Enter the filename"
read name
echo
echo "File details"
if [ -f $name ]
then
echo "File exists"
echo -n "file size is:"
wc -c $name
echo -n "File type:"
file $name
if [ -r $name -a -w $name -a -x $name ]
then
echo "File is readable writeable and executable"
elif [ -r $name -a -w $name ]
then
echo "File is readable and writable"
elif [ -r $name ]
then
echo "File is read only"
elif [ -w $name ]
then
echo "File is write only "
elif [ -x $name ]
then
echo "File executable only"
else
echo "File not readable ,writable and executable"
fi
else
echo "File does not exist"
fi
OutPut
Enter the filename
file1
File details
File exists
file size is:27 file1
File type:file1: ASCII text
File is readable and writable
Write a shell script to create two directories and store five files in one directory using the related commands and to transfer all the files to another directory.
clear
echo "Current Directory is"
pwd
echo
echo
echo "Create Subdirectory"
echo "Enter two subdirectory names"
read name name1
mkdir $name $name1
echo
echo
echo "Move to subdirectory $name"
cd $name
echo
echo
echo "Current directory is `pwd`"
echo "Create five files"
echo "Enter file name "
read file1 file2 file3 file4 file5
touch $file1 $file2 $file3 $file4 $file5
echo "Contents of current directory"
ls
echo
echo
echo "Move files from $name to $name1"
mv $file1 $file2 $file3 $file4 $file5 /home/shaan51/$name1
echo "Files are moved to $name1 directory"
echo
echo
echo "Change to directory location to subdirectory $name1"
cd ..
cd $name1
echo "Current directory is `pwd`"
echo
echo
echo "Display contents of $name1 "
ls
echo "Current Directory is"
pwd
echo
echo
echo "Create Subdirectory"
echo "Enter two subdirectory names"
read name name1
mkdir $name $name1
echo
echo
echo "Move to subdirectory $name"
cd $name
echo
echo
echo "Current directory is `pwd`"
echo "Create five files"
echo "Enter file name "
read file1 file2 file3 file4 file5
touch $file1 $file2 $file3 $file4 $file5
echo "Contents of current directory"
ls
echo
echo
echo "Move files from $name to $name1"
mv $file1 $file2 $file3 $file4 $file5 /home/shaan51/$name1
echo "Files are moved to $name1 directory"
echo
echo
echo "Change to directory location to subdirectory $name1"
cd ..
cd $name1
echo "Current directory is `pwd`"
echo
echo
echo "Display contents of $name1 "
ls
To find a given pattern in a list of files of current directory using grep and fgrep commands.
clear
echo "Enter the Name of the file"
read f f1
echo "Searching using Grep"
opt1=y
while [ $opt1 = y ]
do
echo "Enter the pattern you want to search"
read pat
echo "Output of Grep Search"
grep "$pat" $f $f1
echo "Do you want to enter one more pattern for grep"
read opt1
done
opt2=y
echo "Searching using fgrep"
while [ $opt2 = y ]
do
echo "Enter the pattern you want to search"
read p
fgrep "$p" $f $f1
echo "Do you want to enter one more pattern for fgrep"
read opt2
done
OutPut
shaan51@ubuntu:~$ cat>st6
Unix
Windows
ubuntu
shaan51@ubuntu:~$ cat>st7
Unix
keyboard
mouse
shaan51@ubuntu:~$ sh 12
Enter the Name of the file
st6 st7
Searching using Grep
Enter the pattern you want to search
^U
Output of Grep Search
st6:Unix
st7:Unix
Do you want to enter one more pattern for grep
y
Enter the pattern you want to search
U
Output of Grep Search
st6:Unix
st7:Unix
Do you want to enter one more pattern for grep
n
Searching using fgrep
Enter the pattern you want to search
un
st6:ubuntu
Do you want to enter one more pattern for fgrep
y
Enter the pattern you want to search
u
st6:ubuntu
st7:mouse
Do you want to enter one more pattern for fgrep
y
Enter the pattern you want to search
U
st6:Unix
st7:Unix
Do you want to enter one more pattern for fgrep
n
echo "Enter the Name of the file"
read f f1
echo "Searching using Grep"
opt1=y
while [ $opt1 = y ]
do
echo "Enter the pattern you want to search"
read pat
echo "Output of Grep Search"
grep "$pat" $f $f1
echo "Do you want to enter one more pattern for grep"
read opt1
done
opt2=y
echo "Searching using fgrep"
while [ $opt2 = y ]
do
echo "Enter the pattern you want to search"
read p
fgrep "$p" $f $f1
echo "Do you want to enter one more pattern for fgrep"
read opt2
done
OutPut
shaan51@ubuntu:~$ cat>st6
Unix
Windows
ubuntu
shaan51@ubuntu:~$ cat>st7
Unix
keyboard
mouse
shaan51@ubuntu:~$ sh 12
Enter the Name of the file
st6 st7
Searching using Grep
Enter the pattern you want to search
^U
Output of Grep Search
st6:Unix
st7:Unix
Do you want to enter one more pattern for grep
y
Enter the pattern you want to search
U
Output of Grep Search
st6:Unix
st7:Unix
Do you want to enter one more pattern for grep
n
Searching using fgrep
Enter the pattern you want to search
un
st6:ubuntu
Do you want to enter one more pattern for fgrep
y
Enter the pattern you want to search
u
st6:ubuntu
st7:mouse
Do you want to enter one more pattern for fgrep
y
Enter the pattern you want to search
U
st6:Unix
st7:Unix
Do you want to enter one more pattern for fgrep
n
write a menu driven shell script to implement the following UNIX commands.
// Before execution the script please create two directories and and insert file names using cat command //
clear
opt=y
while [ $opt=y ]
do
clear
echo "--Menu Driven program--"
echo
echo
echo "1. USAGE OF TAIL COMMAND"
echo
echo "2. USAGE OF CMP COMMAND"
echo
echo "3. USAGE OF UNIQ COMMAND"
echo
echo "4. USAGE OF RM-R COMMAND"
echo
printf "Enter your choice"
read ch
case $ch in
1) clear
echo "Tail displays line from bottom of the file"
echo
printf "Enter no. of lines to display "
read lin
echo
echo last $lin lines of file str1
echo "--------------------------------"
echo
tail -$lin file1 ;;
2) clear
echo "cmp compare two files and gives the point of difference"
echo "-----------------------------"
echo
echo file1 and file2 are compared
echo
cmp file1 file2 ;;
3) clear
echo
echo "Uniq eliminate adjacent duplicate lines"
echo "--------------------------------"
echo
echo "unique line of jj"
echo
cat file1 | sort | uniq ;;
4) clear
echo
echo "rm -r delete the directory along with contents"
echo "--------------------------------"
echo
echo "Enter subdir name"
read subdir
mkdir $subdir
cd $subdir
touch file1 file2
echo current dir is `pwd`
cd ..
if rm -r $subdir
then
echo $subdir removed successfully
fi ;;
*) clear
echo invalid choice ;;
esac
echo "Continue?"
read opt
done
clear
opt=y
while [ $opt=y ]
do
clear
echo "--Menu Driven program--"
echo
echo
echo "1. USAGE OF TAIL COMMAND"
echo
echo "2. USAGE OF CMP COMMAND"
echo
echo "3. USAGE OF UNIQ COMMAND"
echo
echo "4. USAGE OF RM-R COMMAND"
echo
printf "Enter your choice"
read ch
case $ch in
1) clear
echo "Tail displays line from bottom of the file"
echo
printf "Enter no. of lines to display "
read lin
echo
echo last $lin lines of file str1
echo "--------------------------------"
echo
tail -$lin file1 ;;
2) clear
echo "cmp compare two files and gives the point of difference"
echo "-----------------------------"
echo
echo file1 and file2 are compared
echo
cmp file1 file2 ;;
3) clear
echo
echo "Uniq eliminate adjacent duplicate lines"
echo "--------------------------------"
echo
echo "unique line of jj"
echo
cat file1 | sort | uniq ;;
4) clear
echo
echo "rm -r delete the directory along with contents"
echo "--------------------------------"
echo
echo "Enter subdir name"
read subdir
mkdir $subdir
cd $subdir
touch file1 file2
echo current dir is `pwd`
cd ..
if rm -r $subdir
then
echo $subdir removed successfully
fi ;;
*) clear
echo invalid choice ;;
esac
echo "Continue?"
read opt
done
To compresses a file using gzip and pack commands.
clear
echo "Enter the filename to be compressed"
read f
clear
echo "Before zipping file size is"
wc -c $f
echo
gzip $f
echo "Compress Results"
gzip -l $f.gz
echo
echo "Unzipping usion gunzip"
echo
gunzip $f.gz
echo "After unzipping file size is"
wc -c $f
OutPut
Before zipping file size is
60 length
Compress Results
compressed uncompressed ratio uncompressed_name
54 60 51.7% length
Unzipping usion gunzip
After unzipping file size is
60 length
echo "Enter the filename to be compressed"
read f
clear
echo "Before zipping file size is"
wc -c $f
echo
gzip $f
echo "Compress Results"
gzip -l $f.gz
echo
echo "Unzipping usion gunzip"
echo
gunzip $f.gz
echo "After unzipping file size is"
wc -c $f
OutPut
Before zipping file size is
60 length
Compress Results
compressed uncompressed ratio uncompressed_name
54 60 51.7% length
Unzipping usion gunzip
After unzipping file size is
60 length
Write a shell Script to assign a file permission to the given file using Symbolic Mode/Absolute Mode
clear
echo "Enter the file name "
read file
echo "Enter the file contents and press control + d"
cat>$file
echo
echo
echo "Permission for the file "
ls -l $file
echo
echo "Changing permission using symbolic mode"
chmod u+x $file
chmod g+wx $file
chmod o-r $file
echo "File permission after assigning permission using symbolic mode"
ls -l $file
echo
echo "changing permission using absolute mode"
chmod u=rw $file
chmod g=rw $file
chmod o=r $file
echo "File permission after assigning permission using absolute mode"
ls -l $file
OutPut
Enter the file name
file3
Enter the file contents and press control + d
ub
comp
unix
Permission for the file
-rw-r--r-- 1 shaan51 shaan51 13 2012-03-01 05:08 file3
Changing permission using symbolic mode
File permission after assigning permission using symbolic mode
-rwxrwx--- 1 shaan51 shaan51 13 2012-03-01 05:08 file3
echo "Enter the file name "
read file
echo "Enter the file contents and press control + d"
cat>$file
echo
echo
echo "Permission for the file "
ls -l $file
echo
echo "Changing permission using symbolic mode"
chmod u+x $file
chmod g+wx $file
chmod o-r $file
echo "File permission after assigning permission using symbolic mode"
ls -l $file
echo
echo "changing permission using absolute mode"
chmod u=rw $file
chmod g=rw $file
chmod o=r $file
echo "File permission after assigning permission using absolute mode"
ls -l $file
OutPut
Enter the file name
file3
Enter the file contents and press control + d
ub
comp
unix
Permission for the file
-rw-r--r-- 1 shaan51 shaan51 13 2012-03-01 05:08 file3
Changing permission using symbolic mode
File permission after assigning permission using symbolic mode
-rwxrwx--- 1 shaan51 shaan51 13 2012-03-01 05:08 file3
Write a program to check whether a given string is palindrome or not.
clear
echo "Enter the string to find whether its palindrome or not"
read str
len=`echo $str | wc -c`
len=`expr $len - 1`
i=1
while [ $i -le $len ]
do
ch=`echo $str | cut -c $i`
ch1=`echo $str | cut -c $len`
if [ $ch != $ch1 ]
then
echo "Str is not palindrome"
exit
fi
len=`expr $len - 1`
i=`expr $i + 1`
done
echo "String is a palindrome"
Output
Enter the string to find whether its palindrome or not
MADAM
String is a palindrome
Enter the string to find whether its palindrome or not
abcd
Str is not palindrome
echo "Enter the string to find whether its palindrome or not"
read str
len=`echo $str | wc -c`
len=`expr $len - 1`
i=1
while [ $i -le $len ]
do
ch=`echo $str | cut -c $i`
ch1=`echo $str | cut -c $len`
if [ $ch != $ch1 ]
then
echo "Str is not palindrome"
exit
fi
len=`expr $len - 1`
i=`expr $i + 1`
done
echo "String is a palindrome"
Output
Enter the string to find whether its palindrome or not
MADAM
String is a palindrome
Enter the string to find whether its palindrome or not
abcd
Str is not palindrome
clear
echo "Enter lower limit"
read m
echo "Enter the upper limit"
read n
flag=0
echo "Prime number between $m and $n are"
m=`expr $m + 1`
while [ $m -lt $n ]
do
if [ $m -eq 1 ]
then
m=`expr $m + 1`
fi
i=2
while [ $i -le `expr $m / 2` ]
do
if [ `expr $m % $i` -eq 0 ]
then
flag=1
break
else
flag=0
fi
i=`expr $i + 1`
done
if [ $flag -eq 0 ]
then
echo $m
fi
m=`expr $m + 1`
done
Output
Enter lower limit
0
Enter the upper limit
19
Prime number between 0 and 19 are
2
3
5
7
11
13
17
echo "Enter lower limit"
read m
echo "Enter the upper limit"
read n
flag=0
echo "Prime number between $m and $n are"
m=`expr $m + 1`
while [ $m -lt $n ]
do
if [ $m -eq 1 ]
then
m=`expr $m + 1`
fi
i=2
while [ $i -le `expr $m / 2` ]
do
if [ `expr $m % $i` -eq 0 ]
then
flag=1
break
else
flag=0
fi
i=`expr $i + 1`
done
if [ $flag -eq 0 ]
then
echo $m
fi
m=`expr $m + 1`
done
Output
Enter lower limit
0
Enter the upper limit
19
Prime number between 0 and 19 are
2
3
5
7
11
13
17
Write a program to count the number of vowels in a given string.
clear
echo "Entre a string to find the number of Vowels "
read st
len=`expr $st | wc -c`
len=`expr $len - 1`
count=0
while [ $len -gt 0 ]
do
ch=`expr $st | cut -c $len`
case $ch in
[aeiou,AEIOU]) count=`expr $count + 1` ;;
esac
len=`expr $len - 1`
done
echo "Number of vowels in the give string is $count"
OutPut
Entre a string to find the number of Vowels
AbcefuSI
Number of vowels in the give string is 4
echo "Entre a string to find the number of Vowels "
read st
len=`expr $st | wc -c`
len=`expr $len - 1`
count=0
while [ $len -gt 0 ]
do
ch=`expr $st | cut -c $len`
case $ch in
[aeiou,AEIOU]) count=`expr $count + 1` ;;
esac
len=`expr $len - 1`
done
echo "Number of vowels in the give string is $count"
OutPut
Entre a string to find the number of Vowels
AbcefuSI
Number of vowels in the give string is 4
Write a program to print a string in the reverse order.
clear
echo "Enter the string to reverse it"
read str
len=`echo $str | wc -c`
len=`expr $len - 1`
echo "The reversed String is "
while [ $len -gt 0 ]
do
ch=`echo $str | cut -c $len`
echo "$ch \c"
len=`expr $len - 1`
done
echo
OutPut
Enter the string to reverse it
Jaisha
The reversed String is
a h s i a J
echo "Enter the string to reverse it"
read str
len=`echo $str | wc -c`
len=`expr $len - 1`
echo "The reversed String is "
while [ $len -gt 0 ]
do
ch=`echo $str | cut -c $len`
echo "$ch \c"
len=`expr $len - 1`
done
echo
OutPut
Enter the string to reverse it
Jaisha
The reversed String is
a h s i a J
Write a program to find factorial of a given number.
clear
echo "Enter the number to find the Factorial"
read f
if [ $f -eq 0 -o $f -eq 1 ]
then
echo "factorial is 1"
else
fact=1
i=2
while [ $i -le $f ]
do
fact=`expr $i \* $fact`
i=`expr $i + 1`
done
echo "factorial of $f is $fact"
fi
OutPut
Enter the number to find the Factorial
5
factorial of 5 is 120
echo "Enter the number to find the Factorial"
read f
if [ $f -eq 0 -o $f -eq 1 ]
then
echo "factorial is 1"
else
fact=1
i=2
while [ $i -le $f ]
do
fact=`expr $i \* $fact`
i=`expr $i + 1`
done
echo "factorial of $f is $fact"
fi
OutPut
Enter the number to find the Factorial
5
factorial of 5 is 120
Write a program to check whether a given number is even or odd.
clear
echo "Enter the number to find whether even or odd"
read a
if [ `expr $a % 2` -eq 0 ]
then
echo "The number $a is even"
else
echo "the number $a is odd"
fi
Output
Enter the number to find whether even or odd
13
the number 13 is odd
Enter the number to find whether even or odd14
the number 14 is Even
echo "Enter the number to find whether even or odd"
read a
if [ `expr $a % 2` -eq 0 ]
then
echo "The number $a is even"
else
echo "the number $a is odd"
fi
Output
Enter the number to find whether even or odd
13
the number 13 is odd
Enter the number to find whether even or odd14
the number 14 is Even
Write a program to find whether the given year is leap year or not?
clear
echo "enter the year"
read year
if [ `expr $year % 4` -eq 0 ]
then
echo "$year is leap year"
else
echo "$year is not leap year"
fi
OutPut
enter the year
2010
2010 is not leap year
enter the year
2011
2011 is not leap year
echo "enter the year"
read year
if [ `expr $year % 4` -eq 0 ]
then
echo "$year is leap year"
else
echo "$year is not leap year"
fi
OutPut
enter the year
2010
2010 is not leap year
enter the year
2011
2011 is not leap year
Write a program to count the number of characters in a given string.
clear
echo "Enter the String to find the length"
read st
l=`echo $st | wc -c`
echo "Length of the string is `expr $l - 1`"
OutPut
Enter the String to find the length
Jaisha
Length of the string is 6
echo "Enter the String to find the length"
read st
l=`echo $st | wc -c`
echo "Length of the string is `expr $l - 1`"
OutPut
Enter the String to find the length
Jaisha
Length of the string is 6
Visual Programming Lab Programs
- Write a VB Program to design a simple calculator to perform addition, subtraction, multiplication and division(Use functions for the calculations).
- Design a User Interface (UI) to accept the student details such as name, department and total marks. Validate the input data and calculate the percentage and division.
- Design a VB application which has MDI and Child forms. Create a menu having the items such as file (New, Open),Format (Font, Regular, Bold ,Italic) and Exit in the MDI form. Also create a text box and use a Common Dialog Box control for changing the font, fore color and back color of the text box.
- VB program to Encrypt and Decrypt a string. (Use Rnd() to generate the Encryption and Decryption keys).
- Create a Vending machine application ,that display images for four snacks and corresponding labels that indicates the number for each snack. The GUI should contain a text box in which the user specifies the number of desired snack. When the dispense snack button is clicked, it should display on a label the name of the snack dispensed. At end it should print (display)the bill of the product.
- Design a small Alarm Clock Application.
- Write a VB Program to Validate the username and password form the database and display the appropriate message.(Use Data Control)
- Write an application for Airline Reservation System, which allows the user to book ticket on a particular date for a particular type of class. At the end, once the ticket is booked, if should display a boarding pass indication the person’s seat no., type of class and total fare. Input validations should be done properly. You can use arrays or databases for storing the information.
- Design a VB application to accept the Item Details (Item ID, Item Name, MFD Date, Unit Of Measure and RatePerUnit).Item Id should be a system generated ID. The application should allow operations –Add, Modify, Delete ,Update and Navigations of the items. Use ADO Date controls and Grid controls.
- Design a VB application to record the employee details such as EmpId, EmpName, Designation and BaiscPay . Calculate the DA, HRA, Deduction and Gross Salary.(Make the necessary assumptions )Use Select .. case for decision making.
- Design a mini ATM application which validates the user on the basis of its account no., and password. After the validation customer is allowed to do many operations such as withdrawal, mini statement, checking balance etc, Application should perform the concerned operation and the account of the user should be updated accordingly.
- VB program to calculate the simple interest and compound interest. Use DLLs for the calculation.
- VC++ program to create a Dialog box and display the position of mouse pointer within the dialog box.
- Create an application which is linked to book database. The application should allow the user to perform a search of the book from the database, when user clicks a button .User should be able to search any book with its title, ISBN no. or Author Name.
- VC++ program to create and load a simple menu in a Window.
Syllabus of Unix Programming
Introduction : History, salient features, Unix system architecture, Unix command format, Unix internal and external commands, Directory commands, File related commands, Disk related commands, general utilities.
Unix File System : Boot inode, super and data block, in-core structure, Directories, conversion of pathname to inode, inode to a new file, Disk block allocation.
Process Management : Process state and data structures of a Process, User vs. kernel node, context of a Process, background processes, Process scheduling commands, Process terminating and examining commands.
Secondary Storage Management : Formatting, making file system, checking disk space, mountable file system, disk partitioning, file compression.
Special Tools and Utilities : Filters, Stream editor SED and AWK, Unix system calls and library functions, Processes, signals and Interrupts, storage and compression facilities.
Shell Programming : Vi editor, shell types, shell command line processing, shell script features, executing a shell script, system and user-defined variables, expr command, shell screen interface, read and echo statement, command substitution, escape sequence characters, shell script arguments, positional parameters, test command, file test, string test, numeric test. Conditional Control Structures – if statement, case statement Looping Control Structure – while, until, for, statements. Jumping Control Structures – break, continue, exit.
Unix System Communication : Introduction, write, read, wall commands, sending and handling mails.
System Administration : Roles of a System Administrator, File System Maintenance, System Startup and Shutdown, User Management, Backup and Restore, Daemons, Domain Name System DNS, Distributed File System.
Unix File System : Boot inode, super and data block, in-core structure, Directories, conversion of pathname to inode, inode to a new file, Disk block allocation.
Process Management : Process state and data structures of a Process, User vs. kernel node, context of a Process, background processes, Process scheduling commands, Process terminating and examining commands.
Secondary Storage Management : Formatting, making file system, checking disk space, mountable file system, disk partitioning, file compression.
Special Tools and Utilities : Filters, Stream editor SED and AWK, Unix system calls and library functions, Processes, signals and Interrupts, storage and compression facilities.
Shell Programming : Vi editor, shell types, shell command line processing, shell script features, executing a shell script, system and user-defined variables, expr command, shell screen interface, read and echo statement, command substitution, escape sequence characters, shell script arguments, positional parameters, test command, file test, string test, numeric test. Conditional Control Structures – if statement, case statement Looping Control Structure – while, until, for, statements. Jumping Control Structures – break, continue, exit.
Unix System Communication : Introduction, write, read, wall commands, sending and handling mails.
System Administration : Roles of a System Administrator, File System Maintenance, System Startup and Shutdown, User Management, Backup and Restore, Daemons, Domain Name System DNS, Distributed File System.
Syllabus of Visual Programming
Unit 1: Windows Programming: Traditional Programming Paradigms – Overview of Windows Programming – Data Types – Resources – Windows Messages – Device Contexts – Document Interfaces – Dynamic Linking Libraries – Software Development Kit (SDK) Tools – Context Help.
Unit 2: Visual Basic Programming: Introduction – Forms – Variables, Types – Properties – Decision Making – Looping – Modules – Procedures – Functions-Tool Box Controls – Menus – Grid Controls – Dialog Boxes – Database Manager – Data Control – Record set Objects.
Unit 3: Visual C++ Programming: Objects – Classes - VC++ Components – Resources – Event Handling – Menus – Dialog Boxes – Importing VBX Controls – Files – MFC File Handling – Document View Architecture – Serialization.
Unit 4: Interfacing Other Applications – Multiple Document Interface (MDI) – Splitter Windows – Exception Handling – Debugging – Object Linking and Embedding (OLE) – Database Application – DLL – ODBC.
Unit 2: Visual Basic Programming: Introduction – Forms – Variables, Types – Properties – Decision Making – Looping – Modules – Procedures – Functions-Tool Box Controls – Menus – Grid Controls – Dialog Boxes – Database Manager – Data Control – Record set Objects.
Unit 3: Visual C++ Programming: Objects – Classes - VC++ Components – Resources – Event Handling – Menus – Dialog Boxes – Importing VBX Controls – Files – MFC File Handling – Document View Architecture – Serialization.
Unit 4: Interfacing Other Applications – Multiple Document Interface (MDI) – Splitter Windows – Exception Handling – Debugging – Object Linking and Embedding (OLE) – Database Application – DLL – ODBC.
Syllabus of Data Communication and Networks
Introduction and Outline of Data Communication and Networks
1. Communication Networks & Services
Approaches to Network design: Network Goals, Network Topologies, Switching Techniques: Message, Packet and Circuit switching, Evolution of Network Architecture and Services
2. Layered Architecture & Applications
Examples of Layering: OSI Reference Model, TCP/IP Model Application Layer Protocols and TCP/IP utilities : Telnet, FTP, HTTP and IP utilities like PING, TRACEROUTE, IPCONFIG, NETSTAT
1. Communication Networks & Services
Approaches to Network design: Network Goals, Network Topologies, Switching Techniques: Message, Packet and Circuit switching, Evolution of Network Architecture and Services
- Telegraph Networks and Message switching
- Telephone Networks and Circuit switching
- Internet, Computer Network and Packet switching
Essential elements of Network Architecture
Key factors in Communication Network Evolution
Key factors in Communication Network Evolution
2. Layered Architecture & Applications
Examples of Layering: OSI Reference Model, TCP/IP Model Application Layer Protocols and TCP/IP utilities : Telnet, FTP, HTTP and IP utilities like PING, TRACEROUTE, IPCONFIG, NETSTAT
3. Digital Transmission
Digital representation of information, Basic properties of digital transmission systems, Characterization of communication channels: Frequency domain and Time domain, Fundamental limits in digital transmission: Nyquist signaling rate, Shannon channel capacity, Line coding. Modems and Digital modulation: Amplitude shift keying, Frequency shift keying, Phase shift keying. Transmission media: Twisted Pair, Coaxial cable, Optical Fibre, Radio transmission, Infra red Light. Error detection and correction: Error detection, two dimensional parity checks, internet checksum, polynomial codes and their error detection capability Multiplexing: Frequency Division Multiplexing, Time Division Multiplexing, Wavelength Division Multiplexing, SONET Multiplexing Circuit Switches: Space division switches, time division switches
Digital representation of information, Basic properties of digital transmission systems, Characterization of communication channels: Frequency domain and Time domain, Fundamental limits in digital transmission: Nyquist signaling rate, Shannon channel capacity, Line coding. Modems and Digital modulation: Amplitude shift keying, Frequency shift keying, Phase shift keying. Transmission media: Twisted Pair, Coaxial cable, Optical Fibre, Radio transmission, Infra red Light. Error detection and correction: Error detection, two dimensional parity checks, internet checksum, polynomial codes and their error detection capability Multiplexing: Frequency Division Multiplexing, Time Division Multiplexing, Wavelength Division Multiplexing, SONET Multiplexing Circuit Switches: Space division switches, time division switches
4. Peer-To-Peer Protocols
Connection oriented and connectionless service models, Features of Services offered by a given layer, Peer to peer protocols in end to end and single hop network ARQ protocols: Stop and wait, go back N, Selective Repeat Other peer to peer protocols: Sliding window flow control, Timing recovery for synchronous services, TCP Reliable stream service and flow control Data Link Control – Framing, Point to Point Protocol (PPP), High level Data Link Control (HDLC).
Connection oriented and connectionless service models, Features of Services offered by a given layer, Peer to peer protocols in end to end and single hop network ARQ protocols: Stop and wait, go back N, Selective Repeat Other peer to peer protocols: Sliding window flow control, Timing recovery for synchronous services, TCP Reliable stream service and flow control Data Link Control – Framing, Point to Point Protocol (PPP), High level Data Link Control (HDLC).
5. Medium Access Control Protocols
Multiple access communications, Random access MAC protocols: ALOHA, Slotted ALOHA, CSMA, CSMA/CD Scheduling approaches to medium access control: Reservation systems, polling, Token passing rings, Comparison of Scheduling approaches in medium access control, Comparison of random access and scheduling medium access controls Channelization: FDMA, TDMA, CDMA
Multiple access communications, Random access MAC protocols: ALOHA, Slotted ALOHA, CSMA, CSMA/CD Scheduling approaches to medium access control: Reservation systems, polling, Token passing rings, Comparison of Scheduling approaches in medium access control, Comparison of random access and scheduling medium access controls Channelization: FDMA, TDMA, CDMA
6. Local Area Networks
LAN structure, MAC sublayer, Logical Link Control layer (LLC), LAN Standards: Ethernet and IEEE 802.3 LAN standard, Token Ring and IEEE 802.5 LAN standard, FDDI, Wireless LANs and IEEE 802.11 standard, LAN bridges: Transparent bridges, Source Routing bridges, Mixed-media bridges.
LAN structure, MAC sublayer, Logical Link Control layer (LLC), LAN Standards: Ethernet and IEEE 802.3 LAN standard, Token Ring and IEEE 802.5 LAN standard, FDDI, Wireless LANs and IEEE 802.11 standard, LAN bridges: Transparent bridges, Source Routing bridges, Mixed-media bridges.
Network services and Internal Network operation, Packet network topology, Datagrams and Virtual circuits, Connectionless packet switching: Virtual circuit packet switching, Structure of a packet switch Routing in packet networks : Routing algorithm classification, Routing tables, Flooding, Hierarchical Routing, Shortest path routing algorithms (Bellman Ford Algorithm, Dijkstra’s Algorithm), Link State routing, Distance Vector Routing Congestion control algorithms: Open Loop control and Closed Loop control
Subscribe to:
Posts (Atom)