chap9_NET - Computer Science Department (CSD) Centre for...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
PCA 0015 Computer Applications Foundation in Engineering ONLINE NOTES Chapter 9 Programming and Languages FOSEE , MULTIMEDIA UNIVERSITY (436821-T) MELAKA CAMPUS, JALAN AYER KEROH LAMA, 75450 MELAKA, MALAYSIA. Tel 606 252 3594 Fax 606 231 8799 URL: http://fosee.mmu.edu.my/~csd/ Computer Science Department (CSD) Centre for Foundation Studies and Extension Education (FOSEE)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Objectives: Upon completion of this topic, the students should be able to: Understand what programming means. Define the steps involved in computer programming. Differentiate some examples of programming languages. Understand the programming fundamentals and techniques in MS Visual Basic 9.1 Introduction All software that you have been using like MS Office, Windows 98, and Solitaire is written using a programming language like C, C++, or Visual Basic. The source codes are compiled and the executable files are produced. The one that you use are the executable files (*.exe) which are often called program files. The source code is not sold nor provided to the users unless the program is an open source program. The source code is where we can specify what our program looks like, how it handles users’ input etc. In this chapter you’ll learn how to write source code for simple windows based programs. 9.1.1 What is programming? Programming is a method of solving problems . There are five steps: Define the problem – identify the input(s) and output(s) Design a solution – use pseudocode and flowchart Code the program – choose a programming language and code it (write the source code) Test the program – debug the program Document the program – provide a user manual 9.1.2 What are Programming Languages? A programming language is a set of vocabulary and grammatical rules to instruct a computer to perform specific tasks. The term programming language usually refers to high-level languages , such as BASIC, C, C++, Ada, Pascal and Fortran. High-level language refers to languages that are closer to the natural languages that people use. Machine language is the lowest-level programming language which consists of only 0 s and 1 s. Machine languages are the only languages understood directly by computers. While easily understood by computers, machine FOSEE , MULTIMEDIA UNIVERSITY (436821-T) MELAKA CAMPUS, JALAN AYER KEROH LAMA, 75450 MELAKA, MALAYSIA. Tel 606 252 3594 Fax 606 231 8799 URL: http://fosee.mmu.edu.my/~csd/
Background image of page 2
PCA0015 Computer Applications Chapter 9 languages are almost impossible for humans to use because they consist entirely of numbers. Regardless of what language you use, eventually you need to convert your program into machine language so that the computer can understand it. A compiler is a language translator that converts the entire program of a high-level language into machine language, for execution later. Examples of Programming Languages Used Today
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/16/2011 for the course ENGR 101 taught by Professor Ahmed during the Summer '11 term at Multimedia University, Cyberjaya.

Page1 / 12

chap9_NET - Computer Science Department (CSD) Centre for...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online