Posts

Showing posts from August, 2016

To configure the IP address for a computer connected to LAN

Include the following source Code in Document Environment in your LaTeX File \begin{document} \newpage \section{\emph{To configure the IP address for a computer connected to LAN}} \subsection{\emph{Whai is IP Address?}} \begin{figure}[h] \centering \includegraphics[scale=0.2]{ip} \caption{IP Address logo} \end{figure} IP address is a unique string of numbers separated by full stops that identifies each computer using the Internet Protocol to communicate over a network.\\ \subsection{To Configure IP Address For Windows} \begin{enumerate} \item Click on the Windows Key on your Keyboard and Press X. On the menu that appears click control panel. \begin{center} \includegraphics[scale=0.45]{2-1} \end{center} \item In Category view click on Network and Internet. \begin{center} \includegraphics[scale=0.5]{2-2} \end{center} \item Click on Network and Sharing Center. \begin{center} \includegraphics[scale=0.5]{2-3} \end{center} \item Click on Change Adapter Settings. ...

1.2 Difference Between The Following: 1-Hub vs Switch 2-Bridge vs Router using LaTeX

Include the following source Code in Document Environment in your LaTeX File \begin{document} \newpage \section{\emph{Difference between the follows:}} \subsection{\emph Hub vs Switch} \begin{table}[h] \begin{center} \begin{tabular}{ | l | p{5cm} | p{5cm} |} \hline Topic of Comparision & Hub & Switch\\ \hline Defination&A Hub is a networking device that allows one to connect multiple PCs to a single network. Hubs may be based on Ethernet, Firewire, or USB connections.&A switch is a control unit that turns the flow of electricity on or off in a circuit. It may also be used to route information patterns in streaming electronic data sent over networks.\\ \hline Transmission Type &Hubs always perform frame flooding; may be unicast, multicast or broadcast.&First broadcast; then unicast and multicast as needed.\\ \hline Layer&Physical layer. Hubs are classified as Layer 1 devices per the OSI model.&Data Link Layer. Network switches operate at La...

1. To familiarize with network devices like switch, hub, routers and bridges in LaTex

\documentclass[12pt]{article} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{multicol} \usepackage{caption} \usepackage{subcaption} \usepackage{transparent} \usepackage{multirow} \usepackage{eso-pic} \usepackage[utf8]{inputenc} \usepackage{color} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand\BackgroundIm{ \put(0,0){ \parbox[b][\paperheight]{\paperwidth}{ \vfill \centering {\transparent{0.05} \includegraphics[height=\paperheight,width=\paperwidth, keepaspectratio]{gne} \vfill }}}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} \begin{titlepage} \newcommand{\HRule}{\rule{\linewidth}{1mm}} \begin{minipage}[height=\paperheight]{0.8\textwidth} \centering { \textcolor{blue} { \textsc{\Large Guru Nanak Dev Engg College }\\[0.5cm] \textsc{\large Practical File}\\[0.3cm] \HRule \\[0.2cm] { \huge \bfseries Internet Methodologies}\\[0.1cm] \HRule \\[2cm]} \includegraphics[width=60mm,scale=0.7]{gne}\\[2cm] \textcolor{blue} ...

2. Write a program to delete an element from a given whose value is given or whose position is given in Java

Image
import java.util.Scanner; class DSPM2 { public static void main(String args[]) { Scanner mi = new Scanner(System.in); int arr[]=new int[100]; System.out.println("Enter the no. of elements to be enter:"); int n =mi.nextInt(); int i; System.out.println("Enter the elements:"); for(i=0;i<n;i++) { arr[i]=mi.nextInt(); } System.out.println("Array entered is :"); for(i=0;i<n;i++) { System.out.println(arr[i]); } System.out.println("Enter the position of element to be deleted(Index Number)");        int pos = mi.nextInt(); if(pos>n) {System.out.println("Error!!\nValue of Out of Range!");} else { --n; for(i=pos;i<n;i++)         { arr[i]=arr[i+1]; } System.out.println("The Array after operation is:"); for(i=0;i<n;i++) { System.out.println(arr[i]); } } System.out.println("/*\nName-Sanjampreet Singh\nRoll Number-1507967\n*/"); } } OUTPUT:

1. Write a program to insert a new element at end as well as at a given position in an array in Java

Image
import java.util.Scanner; class DSPM1 { public static void main(String args[]) { Scanner mi = new Scanner(System.in); int arr[]=new int[10]; int i; System.out.println("Enter the no. of elements to be enter:"); int n =mi.nextInt(); System.out.println("Enter the elements:"); for(i=0;i<n;i++) { arr[i]=mi.nextInt(); } System.out.println("Enter The element to be inserted"); int insert=mi.nextInt(); System.out.println("At which position(Enter the index number)"); int pos=mi.nextInt(); for(i=n;i>pos;i--) { arr[i]=arr[i-1]; } arr[pos]=insert; System.out.println("Inserted Successfully!!\nNow the new array"); for(i=0;i<n+1;i++) { System.out.println(arr[i]); } System.out.println("/*\nName-Sanjampreet Singh\nRoll Number-1507967\n*/"); } } OUTPUT: