C OMPUTER P ROGRAMMING 1 Introduction to Programming.

Slides:



Advertisements
Similar presentations
Md. Ahsan Arif, Assistant Professor, Dept. of CSE, AUB
Advertisements

College of Information Technology & Design
1 CS101 Introduction to Computing Lecture 17 Algorithms II.
2 We need programming languages to communicate with a computer. The two broad classifications of programming languages are: Low-level and High- level.
James Tam A High-Level Model For Software Development What is involved in the process of designing, writing and maintaining computer programs?
1 Module 2: Fundamental Concepts Problems Programs –Programming languages.
Lecture 2: Fundamental Concepts
CSCI 3 Introduction to Computer Science. CSCI 3 Course Description: –An overview of the fundamentals of computer science. Topics covered include number.
Chapter 2: Algorithm Discovery and Design
Algorithms. Introduction Before writing a program: –Have a thorough understanding of the problem –Carefully plan an approach for solving it While writing.
PRE-PROGRAMMING PHASE
The Fundamentals: Algorithms, the Integers & Matrices.
1 I.Introduction to Algorithm and Programming Algoritma dan Pemrograman – Teknik Informatika UK Petra 2009.
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
Course Introduction C++ An Introduction to Computing.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
I NTRODUCTION TO P ROGRAMMING Lecture No. 1 and 2 Combined Lahore Leads University 21 st October 2013.
Introduction to Programming. What is a Program  Set of Instructions that tells the computer what to Do.  Driving force behind the computer  Without.
The Program Development Cycle
Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
Chapter 1 Introduction. Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time.
CS 390 Introduction to Theoretical Computer Science.
PROGRAMMING. Objectives Define the term program List and explain the steps involved in developing a program.
10/14/ Algorithms1 Algorithms - Ch2 - Sorting.
It’s All About Properties of Equality. How could properties of equality be applied to solve this equation? Example 1: 3x + 11 = 32 What is the value of.
Introduction to Algorithms By Mr. Venkatadri. M. Two Phases of Programming A typical programming task can be divided into two phases: Problem solving.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Algorithms & Flowchart
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
Program Design. The design process How do you go about writing a program? –It’s like many other things in life Understand the problem to be solved Develop.
Structured Programming (4 Credits)
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
Compilers and Interpreters
CSCI-235 Micro-Computers in Science Algorithms Part II.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Software Engineering Algorithms, Compilers, & Lifecycle.
NECC ForumJune, 2008 © Chris Stephenson Teaching Problem Solving and Design Chris Stephenson Computer Science Teachers Association.
Low-Level Programming Languages, Pseudocode and Testing Chapter 6.
 Problem Analysis  Coding  Debugging  Testing.
CPSC 121: Models of Computation REVIEW. Course Learning Outcomes You should be able to: – model important problems so that they are easier to discuss,
ICS 3UI - Introduction to Computer Science
Topic: Programming Languages and their Evolution + Intro to Scratch
Computer Programming (BCT 1113)
Computer Programming.
Warm Up Check the solution to these problems; are they correct? If not, correct them. 3 – x = -17; x = -20 x/5 = 6; x = 30.
Data Structures and Algorithms
Unit 3 lesson 2&3 The Need For Algorithms- Creativity in Algorithms
Creativity in Algorithms
Algorithm and Ambiguity
Pseudocode Upsorn Praphamontripong CS 1110 Introduction to Programming
Introduction to Computer Programming
Algorithm and Ambiguity
An Introduction to Visual Basic .NET and Program Design
Language is a medium of communication.
Foundations of Computer Science
Introduction to Problem Solving
Solve a system of linear equation in two variables
Open on the student drive
Computer Programming.
Algorithms Key Revision Points.
Algorithm and Ambiguity
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
U3L1 The Need For Programming
Type Topic in here! Created by Educational Technology Network
Warmup Chapter P Review
Presentation transcript:

C OMPUTER P ROGRAMMING 1 Introduction to Programming

W HAT IS P ROGRAMMING ? Programming involves: solving problems expressing solutions in a computer language in the form of programs translating programs into machine language executing and testing the programs

W HAT IS P ROGRAMMING ? Every computer program solves a particular problem. In programming, you solve the problem, not the computer. You give the computer instructions in the form of a program, telling it what to do and how to do it. The computer follows these instructions exactly. The program is set of instructions required to solve the problem. It is also the solution to the problem, because when the computer follows these instructions it will produce the “answer”

W HAT IS P ROGRAMMING ? The term algorithm is also used to describe the set of steps that solve a problem. An algorithm may be expressed in English or in a formal computer language, whereas a computer program must be expressed in a programming language. Algorithms are the solution, a program is an implementation of the algorithm in a specific programming language.

W HAT IS P ROGRAMMING ? We should, solve problems independently of any programming language. Only when we have solved a problem should we consider the programming language. Beginners find this hard to understand, but it is worth repeating that: we do not need a programming language to solve problems. Of course, when it comes to actually implementing our solution and testing it, then we must use a programming language. We distinguish two phases in programming: the problem solving phase ( analysis phase, design phase), and the implementation phase.

P ROGRAMMING AND M ISTAKES We make mistakes ! For example we may give incorrect instructions In these cases, the computer program will not produce the “ right answer”. It is still solving a problem, just not the problem we wanted to solve. For this reason it is important to thoroughly check that your programs do indeed solve the problem you intended. It is important to note that this testing does not prove that programs are correct, simply that they are correct for the tests used.