Posts
Linear Search program in java
- Get link
- X
- Other Apps

Q. write a program in java to perform a linear search. Ans:- import java.io.*; public class LnearSearch { public static void main(String args[])throws IOException { InputStreamReader in=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(in); int i,s,n,h=0 ; System.out.println("Enter length of Array="); n=Integer.parseInt(br.readLine()); int A[ ]=new int[n]; System.out.println("Enter arrays elemnts ="); for(i=0;i<n;i++) { A[i]=Integer.parseInt(br.readLine()); } System.out.println("Arrays elemnts are ="); for(i=0;i<n;i++) { System.out.println(A[i]); } System.out.println("Enter elemnt which to be searched="); s=Integer.parseInt(br.readLine()); for(i=0;i<n;i++) { if(s==A[i]) { System.out.println("elements is found"); h=1; } } if(h==0) { System.out.println("Element is not found"); } } } if you run in blue-j application then t...
introduction of array / what is array in c++/ what is array in programming
- Get link
- X
- Other Apps
ARRAY Array it is a reference data type. It can hold several items of the same type that stored at a contiguous memory location. It consists of contiguous memory locations. It works on the index number. Since it holds all items on an index basis. Its index number is starting with 0(zero) and last with size-1 or length-1 i.e. if length/size of array is 5 then its index number will be {0,1,2,3,4}. Here it is clear that the last index will be 5-1=4.it means that size-1/length-1. It is used to handle multiple values of the same type at a time. Types of Array There are two types of Array such as- One-dimensional Arrays/single-dimensional Array . Double-dimensional Arrays/Multi-dimensional Array
Requirements to access internet
- Get link
- X
- Other Apps
REQUIRMENTS TO ACCESS INTERNET There are following requirement to access the internet such as- Computer Modem Communication Media Access Right Web Browser Computer :- To get connect to the internet, one can use a computer with a considerable speed. Modem: - The sending and receiving ends of the communication must have a modem. A modem stands for modulator – demodulator. It is a computer peripheral device that converts digital signals to an analogue signal and also analogue signal to digital signal. Communicating Media :- All internet signals travel over-communicating media like – telephone w...
Administration of the Internet
- Get link
- X
- Other Apps
ADMINISTRATION OF THE INTERNET There are following Administration of the internet such as- § IAB(Internet Architecture Board) § IETF(Internet Engineering Task Force) § IANA( Internet Assigned Numbers Authority) § ADNR(Accredited Domain Name Registrars) IAB:- it stands for Internet Architecture Board. it is responsible for approving standards and allocating resources over the internet. IETF:- it stands for Internet Engineering Task Force. It holds discussion and investigates the operational and technical problems of the internet. IANA:- it stands for Internet Assigned Numbers Authority. It is operated by ICANN(Internet Corporation For Assigned Names and Numbers). I...
what is protocol ?
- Get link
- X
- Other Apps
PROTOCOAL Protocol : - it is a set of rules that govern the syntax, semantics and synchronization of communication. It may be applied by hardware, software, or a combination of the hardware and software. ► It is a convention or standard that regulates the operation and transference of data between two computers. ► The primary protocol of the internet is TCP/IP protocol which stands for Transmission Control Protocol/Internet Protocol. Types of Protocol ► There are the following types of protocol such as- § TCP/IP § FTP § HTTP § HTTPS § POP § TELNET § UDP.....etc TCP/IP Protocol: - it stands for Transmission Control Protocol/Internet Protocol. ► It is responsible for connection-oriented transmission and IP is responsible for connectionless transmission that represents the logical address of the host machine. FTP Protocol :- F...
computer and its language
- Get link
- X
- Other Apps
computer and its language Chp-1 Computer and its Language COMPUTER: - Computer is an electronic machine or device that takes input from user and then process it then gives output. Ø It is a combination of hardware and software. Ø There are following category of computer such as:- § Super computer § Mainframe computer § Minicomputer computer § Micro computer v Super computer :- A supercomputer is a computer with a high level of performance as compared to a general-purpose computer . The performance of a supercomputer is commonly measured in floating-point operations per second (FLOPS) instead of million instructions per second (MIPS). Ø PARAM 2000 and ANURAG..etc are the example of super computer. v Mainframe computer :- Mainframe computer likes as a big centralized machine that co...