Posts

Showing posts with the label Basic

What is File Tranfer Protocol (FTP) ?

Image
FTP server is a server assigned to provide delivery service / exchange data to FTP client with FTP client must request (request) first to FTP server. The only method used by FTP is the standard authentication method, which requires the username and password to access the data on the FTP server. Registered users (have a username and password) have full access to some directories and files in it so that the registered user can create, copy, move or even delete those directories. For how it works, first FTP client must request connection to FTP server, if it is connected with FTP server then FTP client can do data exchange such as upload and download data. Benefits of FTP We can exchange files between computers easily, although the file has a large size For website owners, with the FTP, they can backup their website easily We can indirect or implicit remote computer FTP provides reliable and efficient data transfer.

Description of TCP/IP Layer

Image
Protocol functions as a rule that allows computers to communicate in a network. When two networks want to communicate, data will be entered into the package. Each data packet must pass through a specific protocol for communication to be established, each protocol has its own function. To facilitate the management of data packets, then the protocol is collected in one layer. In the previous article already discussed about 7 layer osi. Here will be explained about the TCP / IP layer. Function of each Layer A. Network Access Layer This layer is the lowest layer on the TCP / IP layer. The functions of the protocols in this layer are : Defines how to use the network to transmit frames, which are units of data passed through physical media. The protocol on this layer must be able to translate electrical signals into digital data that computers understand, derived from other similar devices. In this layer there are protocols such as Ethernet, Token Ring, PPP, FDDI, ATM, X...

Program Prime Numbers C Language

Image
Hey everyone, I want to share my experience with C language. This my program will print prime numbers. You simply enter the number of primes that you want to display. And this is the source code. #include<stdio.h> int main(){ int a, n, i, sum, total=0; printf("input how prime should print : "); scanf("%d",&n); for(a=1;total<n;a++){ sum=0; for(i=1;i<=a;i++){ if(a%i==0){ sum++; } } if(sum==2){ printf("%d ",a); total++; } } } It is a program from me, hopefully useful.

Algorithm and Flowchart Simple Calculator

Image
Algorithm :  Initialize val1, val2, oprs, result  Input val1  Input val2  Choose operation (oprs) from +, -, x or :  If you choose operation (+), then the result = val1 + val2  If you select operation (-), then result = val1 - val2  If you select operation (x), then result = val1 * val2  If you select operation (:), then result = val1 / val2  Print results And this is the flowchart :

Algorithms and Programming Languages : How to implement algorithm in some programming languages?

Image
Algorithms and Programming Languages : How to implement algorithm in some programming languages? Consider the following example algorithm used to decompress the contents of array X (i) as below: The above algorithm consists of instructions. Although the instructions are written in codes close to computer programming languages, but the computer can not understand and execute those instructions. Computers can only understand if the instruction is written in a language called programming language. Here is given example of some programming languages as implementation of the above algorithm: It appears that the instructions in the Algorithm are intentionally made close to the instructions used in the programming language. So if it has been written the algorithm to solve a problem, then we can easily convert algorithm into form of programming language.