U1L1 An Introduction To Algorithms and Programming
U1L1 An Introduction To Algorithms and Programming
• Every program that runs on your computer, from your internet browser to
your word processor, spread sheet program, computer game and media
player, is essentially a set of instructions which have been input into the
computer by a programmer, or groups of programmers.
1.1.1 EXTREME PRECISION
• The above definition sounds simple enough. The reality, however, is that
programming is a little more complex than that.
• If you were asked to count the number of words in the above sentence, you
would be able to do so without much thought. It is, in essence, a no-brainer.
• The people at Sun decided to create a language which would be able to run on any
computer, including on the internet, and so Java was born. This ability to run on
all kinds of computers, and particularly on the internet, made Java extremely
popular with programmers, and Java became a hit.
1.4.1 HOW JAVA WORKS
• With most programming languages, when you write a program and
compile it, the program is translated into machine code, which the
computer can understand and execute.
• The JDK includes tools which are necessary for developing and
testing programs written in the Java programming language and
running on the Java platform.
INSTALLING JAVA (2)
• To install the JDK you will need to download the installation package and
install it on your computer.
• The JDK is available free from Oracle, and the latest version can be
downloaded from their website:
https://www.oracle.com/java/technologies/downloads/#jdk17-windows
• Here you may download the version of the JDK which is compatible to your
computer’s operating system. If you are a MAC user, you do not need to
install the JDK – MACS come with the JDK installed from the factory.
INSTALLING JAVA (3)
INSTALLING JAVA (4)
INSTALLING JAVA (5)
1.5 INTEGRATED DEVELOPMENT
ENVIRONMENTS
• Once you have the JDK installed, you can begin creating your own Java
programs. You do not need any special tools for typing in your java code
– you can use any word processor, or even a text editor like Notepad for
typing your code.
• This is fine if you’ve got a small program, but as your programs get bigger
and include more classes, it becomes difficult to maintain with just a text
editor.
• http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=down
load_jgrasp.html
• http://www.jgrasp.org/tutorials187/01_Installing.pdf
1.6 UNIT SUMMARY
• Computer programming is creating a sequence of very precise
instructions written in a language a computer understands, to perform
a specified task with a computer
• High-level programming languages such as Java, C#, PHP, Python and Visual
Basic are some of the current popular languages in use