It2EDU

Sunday, March 19, 2017









A program is a solution of a specific program which is
unique for similar type problems. So a program is more helpful to find out the
solution of a problem. A program follow some syntax rules based on which
programming language is choose by the programmer.


Before going to solve a problem, a program has Algorithm and
Flow chart.


These two are helpful to find out the flow of program, input
information and approach of problem solving.





Use of a Flowchart:





A flowchart is used geometrical figure which represents the
flow of instructions of a program. We all know a program is set of
instructions.  How the instructions could
solve the problem what the data has to be taken by the user or programmer at
run time of a program. Also it shows how many variables are used to solve the
problem and what the operation is going to perform in the program everything
has presented in a clear way by using geometrical figures.


















The above diagram shows how the program is executed and what
variables are taken as input.


Also we need algorithm for the above program.


An algorithm is used to code the program in any programming
language.




  • Start

  • Accept variable of SUM, x and y.

  • Accept input for X and Y.

  • Perform operation SUM = X+Y

  • Print SUM

  • Stop.






After the algorithm is prepared start writing the code in
any programming language based on programmer interest it may be java, c, c++….
.net,python or any.


Every programming language has its own set of syntax and
rules, based on that rules programmer has to write the code. But here we need
to observe one thing that is irrespective of the programming language first
built the algorithm if the algorithm is good no doubt about you are the good
programmer.





You will find part-1 here.









Saturday, March 11, 2017









A MIME stands for Multipurpose Internet Mail Extension. In
the context of internet or web applications the way of identifying files
according to their nature and format. While developing the web applications
specify content-type in the header part of HTTP – response. 


A MIME type is a
mechanism that can be informed to the client the variety of document
transmitted. Extensions of the files has plays a small role in the web. 





General form of MIME is type/subtype. it is the syntax for mime type





Below are few  MIME
types :


  • Text/html - for Html files

  • multipart/zip - for zip files

  • Application/msword - for word documents

  • image/jpeg - for JPEG image files



RFC defines messages have two parts one is header and a
body. These header and body represents in ASCII text format. The body of the message
is a simple text originally. RFC has decided how to send information in any
format means file or image or video. SO it was introduced MIME for sending
image type data or any other formatted data.


The message header is a series of <CRLF> terminated lines.
CRLF stands for carriage return line feed which are a pair of ASCII control
characters often used straight forward encoding of binary data into ASCII
character set.  This encoding is called
base64. In this approach every three bytes of data into 4 ascii
characters.  This is done by grouping the
binary data into 24-bit units and breaking each such unit into four 6-bits
pieces. Each 6-bit piece maps onto one of 64 valid ASCII characters;


A MIME message that consists of may be a regular text and
can be encoded using 7-bit ASCII.