CSC-115 Introduction to Computer Programming

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

Lecture 1: Overview of Computers & Programming
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Lesson 6 Software and Hardware Interaction
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming The software development method algorithms.
Programming Creating programs that run on your PC
16/13/2015 3:30 AM6/13/2015 3:30 AM6/13/2015 3:30 AMIntroduction to Software Development What is a computer? A computer system contains: Central Processing.
Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Chapter 1 Program Design
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
PRE-PROGRAMMING PHASE
Programming. Software is made by programmers Computers need all kinds of software, from operating systems to applications People learn how to tell the.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
CS102 Introduction to Computer Programming
Introduction to Programming G50PRO University of Nottingham Unit 1 : Introduction Paul Tennent
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Program development & programming languages Chapter 13.
Simple Program Design Third Edition A Step-by-Step Approach
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Data Structures & AlgorithmsIT 0501 Algorithm Analysis I.
Programming Lifecycle
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Invitation to Computer Science 5 th Edition Chapter 6 An Introduction to System Software and Virtual Machine s.
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.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
The Software Development Process
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
CS-303 Introduction to Programming
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Lecture (8) Programming Design Dr. Emad Elsharkawy Eng- Omar Salah Dr:Emad Elsharkawy 1 Saturday, 13 February 2016.
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Chapter 1 Introduction 2nd Semester H
ICS 3UI - Introduction to Computer Science
CSCI-235 Micro-Computer Applications
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
An Introduction to Visual Basic .NET and Program Design
SME1013 PROGRAMMING FOR ENGINEERS
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 Introduction(1.1)
The Programming Process
SME1013 PROGRAMMING FOR ENGINEERS
Programming.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
ICT Gaming Lesson 2.
Presentation transcript:

CSC-115 Introduction to Computer Programming Lecture 2 - Programming Introduction Prof. M. Higazi

What is Computer Programming? The process of designing, writing, testing, debugging, and maintaining the source code of computer program In computer science, source code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text. The source code of a program is specially designed to facilitate the work of computer programmers

What are the quality requirements of programming? Reliability: how often the results of a program are correct. Robustness: how well a program anticipates problems not due to programmer error. Usability: the ergonomics of a program: the ease with which a person can use the program for its intended purpose, or in some cases even unanticipated purposes. Portability: the range of computer hardware and operating system platforms on which the source code of a program can be compiled/interpreted and run. Maintainability: the ease with which a program can be modified by its present or future developers in order to make improvements or customizations, fix bugs and security holes, or adapt it to new environments. Good practices during initial development make the difference in this regard. Efficiency/Performance: the amount of system resources a program consumes (processor time, memory space, slow devices such as disks, network bandwidth and to some extent even user interaction): the less, the better. This also includes correct disposal of some resources, such as cleaning up temporary files and lack of memory leaks.

Programming Languages There are literally hundreds of computer programming languages available for writing instructions to the computer. Each was developed to solve a particular type of problem. Some of the more common programming languages are: BASIC (Beginner’s All-purpose Symbolic Instruction Code) – The most popular language in use for microcomputers. BASIC was developed as the first language to be interactive with a user. FORTRAN – The first of the high-level languages designed for scientific and mathematical programming COBOL – The most popular business language in use for larger computers Pascal – Popular with computer scientists; known as a highly structured language C – Developed by Bell Lab scientists, C is widely used for writing operation systems and utility software. LabVIEW – A graphical programming language developed by National Instruments

Programmer Tasks Computer programmers are those who write computer software. Their tasks usually involve: Coding Compilation Debugging Documentation Integration Maintenance Requirements analysis Software architecture Software testing Specification

Steps in Program Development A series of program planning tasks and techniques must be defined prior to writing a computer program. The following steps are to be considered: 1. Clearly state the problem – No one can solve a problem if it is not clear exactly what is to be done. The problem statement should have three parts: The output is required. A computer program is always designed to produce some desired output. Find out exactly what output is required before proceeding. The inputs. What inputs are available, and what will you need in order to produce the desired output? The algorithm for solution. An algorithm is a list of steps necessary to accomplish a the task. What processing must be done to get from input to output? This will include and formulas needed for calculations.

Steps in Program Development Plan the logic of the problem – There are several popular methods for planning program logic: a) Flowcharts b) Pseudocode c) hierarchy charts In practice, you will probably find that one of these methods works best for you. Remember, the computer follows directions exactly in the sequence given, you must be careful to plan each step, making sure the sequence is correct.

Steps in Program Development Code the program – Writing the program in a programming language such as LabVIEW is called coding. The program can be written on plain paper or on a specially designed form called a coding form. There is also the option of coding right into the LabVIEW language, however this is a more advanced level of programming. Key the program into the computer – This generally means to construct the program, one piece at a time, into the LabVIEW language.

Steps in Program Development Test and debug the program – Once the program has been keyed into the computer, you are ready to see if it works. When the Start/Run command is selected, the program begins executing. At this point, you look to see if you got the exact output you expected If the planning was done carefully and well, and no errors were made, then you probably got the expected output However, if the output is NOT correct or is there is no output at all, then there was an issue with the development of your program Any errors that are found in your program are called bugs. The process of finding and correcting any errors is called debugging In order to debug your code, begin by reviewing the logic/development plan of your program. The LabVIEW Error Handler can greatly assist in debugging syntax errors.

Steps in Program Development Complete the documentation – Documentation is used as reference material for computer systems. Documentations include: Flowcharts, hierarchy charts, pseudocode Descriptions of output and input Algorithms for problem solution Program listings Instructions for the user * Note: Looking back at steps 1 through 5, it is obvious that most of the documentation has already been prepared. The last step is to complete any loose ends and assemble the documentation into a finished product.