Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Basic Concepts © Juhani Välimäki 2003.

Similar presentations


Presentation on theme: "Programming Basic Concepts © Juhani Välimäki 2003."— Presentation transcript:

1 Programming Basic Concepts © Juhani Välimäki 2003

2 Learning Goals General principles, that help to create robust, understandable programs that are easy to modify Solving problems with the programs Using flowcharts to describe the logic of a program Basic Java programming © Juhani Välimäki 2003

3 What is Programming? Problem solving Designing a program that will solve the problem Reusing ready software components Writing new code Testing the program Documentating and Creating User guides © Juhani Välimäki 2003

4 Software Engineering Feasibility study Requirements Design Implementation Testing Installation aka. Deployment Maintenance The Waterfall Model © Juhani Välimäki 2003

5 data storage What is a Program? data storage program = program flow + data processing rules inputoutput © Juhani Välimäki 2003

6 What is an Application? Program and Application may usually be used as synonyms. Application might be better term e.g. while referring to programs that have Graphical User Interface (GUI). Then ready-made UI components are applied to our own program. Or capabilities of the operating system are applied to certain problem solution. Sometimes programs are called as software. ”This sofware is used to create CD-ROMs.” © Juhani Välimäki 2003

7 What is a Programming Language 1? Text Editor C++ -language compiler for Linux and IBM 386 PC Linux operating system in an IBM 386 PC A program understood by the Linux operation system and the IBM 386 PC computer = bit flow C++ source code understood by the programmer Hello.cpp With the text editor (Notepad, TextPad) programmer......writes source code, which is exact text description of the program flow understood by the programmer Compiler is a program that understands the source code written by the programmer and knows how to create an executable program that is nonsense to programmer......but works in a certain machine and operating system, referred as the running environment. © Juhani Välimäki 2003

8 What is a Programming Language 2? Text Editor Java Byte Compiler for Java Virtual Machine Java source code understood by the programmer Hello.java Windows Operating SystemLinux Operating System Java Virtual Machine (Java VM) for Windows Java Virtual Machine for Linux Java VM Mac Java VM Symbian Virtual Machine makes it possible to run the same program on different computers and operating systems © Juhani Välimäki 2003 Hello.class A program Java Virtual Machine understands

9 What is the Source Code? Text Editor source code understood by the programmer {Example of Pascal source code} … begin result :=0; sum :=0; readln (value); if (value>0) then sum := sum + value; … end. // Example of Java source code import java.util.*; public class OwnApplication { static public void main() { int result = 0; int sum = 0; … sum = sum + value; … © Juhani Välimäki 2003

10 Do You Remember these Concepts? Programming Program (≈ Application ≈ Software) Input, output. (=IO) Programming Language Source Code Compiler Operating System Java Java Byte Compiler JavaVirtual Machine © Juhani Välimäki 2003


Download ppt "Programming Basic Concepts © Juhani Välimäki 2003."

Similar presentations


Ads by Google