1 The Catholic University of Eastern Africa P.o Box , Nairobi Kenya Edward Kioko 2013
|
|
- Jade Owen
- 6 years ago
- Views:
Transcription
1 Purpose of the module (A constituent College of Kenyatta University) P.O Box , Machakos Kenya Telephone: Website: SCO102: introduction to programming Prepared by: Edward M Kioko -kioko@cuea.edu Tel:+254 (0) August, 2014 In this 3 month instructor-led course, student shall learn the fundamental skills for programming languages. Learners will use a high level language (C programming language) to solve scientific problem. The module provides a basic an entry point for students in the field of software engineering. Learning Outcomes By the end of the module, students will be able to: Understand the basic principles in programming Understand problem solving strategies Understand the process of creation of a computer program and the different approach Use high level language to code, write, compile, link and execute a program with emphasis on scientific applications 1 The Catholic University of Eastern Africa P.o Box , Nairobi Kenya Edward Kioko 2013
2 Course outline Programme Module Name Module Code : SCO 102 Credit Hours week Semester : BSc Computer science : introduction to programming : 2hours per week; Lab work 3 hours per Semester : August-Dec 2014/2015 Course Leader : Edward Kioko Meeting hours : Friday 8:00-1:00 Venue Website Program : Electrical Lab : kioko@cuea.edu : : Regular Module Schedule (August December 2014/2015) Wee k Topic/Content 1 & 2 Student registration & introduction to the module Introduction to programming methodology Programming language levels Factors to consider while selecting a Com ment 2 The Catholic University of Eastern Africa P.o Box , Nairobi Kenya Edward Kioko 2013 programming language Translators Overview of C language Development environment and cycle Syntax of a C program 3 Program design and logic 4 & 5 6 & 7 Algorithm Flowcharts & Pseudo code Basic Elements of programming Identifiers and keywords Commenting in data types Operators Constants and variables Control structures Decision control structure loop Continuous Assessment Test 8 & 9 Modular programming in C( functions)
3 10 & 11 Arrays in C Lab Practical Assignments 10% Lab 20% Exam: 60%. 100% END OF SEMESTER EXAMINATIONS Teaching Methodologies: Lectures, demonstrations, group/class discussions and practical exercises Instructional Materials/Equipment: Computers, projectors, whiteboards and writing materials. Recommended References: 1. Kerinignan, B. W., & Ritchie, D. M. (2010). The C programming Language (second Edition ed.). New jersey: Prentice Hall P T R. 2. King, K. C Programming: A Modern Approach. Course Assessment: I CAT: 10% 3 The Catholic University of Eastern Africa P.o Box , Nairobi Kenya Edward Kioko 2013
4 Contents Chapter One: Introduction to programming Chapter objectives Introduction to programming Programming levels Factors to consider while selecting a programming language Translators The development environment and the development cycle Overview of C language C program structure and syntax Chapter summary Chapter exercise Further reading suggestion Chapter Two: Program Design Process and Logic Chapter objectives Introduction Program development Lifecycle (PDLC) Programming design and logic tools Algorithms The Catholic University of Eastern Africa P.o Box , Nairobi Kenya Edward Kioko Flow charts Pseudocode Control Structures/Logical Structures Chapter summary Chapter exercise Chapter objectives Introduction Key words Comments in C Chapter three: Fundamentals of C programming Data types in C Variables Numeric variables Character variables Assignment Constants in c programming Arithmetic operators Escape sequence Statements Casting Data Types Input and output... 33
5 3.13 Formatted input scanf Character I/O getchar& putchar Chapter Four: Control structures in C Introduction Chapter objectives Boolean expressions and relational operators Compound Boolean expressions using logical operators Control structures in C Decision control structures Switch statement in C Repetitive control structures in C Chapter summary Chapter exercise Further reading suggestions Chapter Five: Functions in C Introduction Chapter objectives Benefits associated with Functions Defining a function in C Function declaration Function calls Parameters and arguments Recursive functions in C Number Factorial Fibonacci Series Variable scope Local Variables Global Variables Formal Parameters Chapter summary Chapter exercises Further reading suggestions The Catholic University of Eastern Africa P.o Box , Nairobi Kenya Edward Kioko 2013
6 Chapter One: Introduction to programming 1.1 Chapter objectives By the end of this, learners should be able to: Understand programming levels Learn fundamental concepts underlying programming languages Understand the Program Development Life Cycle (PDLC) Understand the factors to consider while selecting a programming language Indentify the different parts of a C program Able to write, debug and execute a simple C program 1.2 Introduction to programming Users communicate with the computer in a language understood by it. It needs to be instructed to perform all the tasks. The instructions are provided in the form of computer programs, which are developed by a programmer using a programming language. The language, which the user employs to interact with the computer is known as computer programming language. The process of using such languages to instruct the computer is known as programming or coding. We can therefore define a programming language as computer language used by programmers to develop applications, scripts, or other set of instructions for a computer to execute. It is a series of instructions that instruct the computer on how to perform tasks 1.3 Programming levels The figure below is intended to illustrate several key points about programming languages. First, programming languages are built upon and relate directly to the underlying computer (hardware). In fact, they are designed to control the operation of the hardware. Second, these programming languages can be divided into TWO major groups; low and high level programming languages Low-level Languages are machine-dependent i.e. must run on specific machines. They require extensive knowledge of computer hardware and its configuration. They are further divided in to Machine language and Assembly language High-Level Languages are machine-independent hence can ran on different types of machines 6
7 Figure 1: Levels of Programming Languages Programming Language Low Level High level Machine Language Assembly Language Procedural Object oriented Machine Language It s the only language that is directly understood by the computer therefore it does not need any translation. Its written as strings of 1 s (one) and 0 s (zero. Program instruction may look like this: It is considered to be first generation language. Advantage of Machine Language The only advantage is that program of machine language run very fast because no translation program is required for the CPU. Disadvantages of Machine Language It is very difficult to program in machine language. The programmer has to know details of hardware to write program. The programmer has to remember a lot of codes to write a program which might easily result in program errors. It is difficult to debug the program. Assembly Language Instead of using a string of binary bits in a machine language, assembly language use English-like words as commands that can be easily interpreted by programmers. These commands are referred to as mnemonics. Examples of mnemonics in assembly language include ADD, SUB, MUL, DIV. 7
8 Assembly language source must be translated into machine code by a separate program known as assembler. The machine code can run on its own at any time therefore the assembler and the source code are no longer needed. If you make any changes to the source code, the assembler shall be needed to recompile the program again and generate a new object program. Advantages of Assembly Language Mnemonics are easier to understand hence saving the programmer lot of time and effort. It is easier to correct errors and modify program instructions. Assembly Language has the same efficiency of execution as the machine level language. Because this is one-to-one translator between assembly language program and its corresponding machine language program. Disadvantages of Assembly Language: Its machine dependent hence a program written for one computer might not run in other computers with different hardware configuration i.e. there is no program portability. It is necessary to remember the registers of CPU and mnemonic instructions by the programmer. Several mnemonic instructions are needed to write in assembly language than a single line in high-level language. Thus, assembly language programs are longer than the high language programs Advantages of Low-level Languages Low-level languages have the advantage that they can be written to take advantage of any peculiarities in the architecture of the central CPU. Thus, a program written in a low-level language can be extremely efficient, making optimum use of both computer memory and processing time Disadvantages of Low-level Languages To write a low-level program takes a substantial amount of time, as well as a clear understanding of the inner workings of the processor itself. Therefore, low-level programming is typically used only for very small programs, or for segments of code that are highly critical and must run as efficiently as possible High-Level Languages High-level programming languages allow the specification of a problem solution in terms closer to those used by human beings. These languages were designed to make programming far easier, 8
9 less error-prone and to remove the programmer from having to know the details of the internal structure of a particular computer. These high-level languages were much closer to human language. Examples include Java, Python, Prolog e.t.c. They are very convenient but very far removed from the computer they are running on. They are independent hence can run on different types of machines Programming paradigms Procedural programming Programming instructions to tell the computer what to accomplish and how to accomplish it. Some common procedural programming languages include BASIC, COBOL, C among others e.t.c Object Oriented Approach Structured programming doesn t explain how to keep data and programs together. However with OOP approach, data and programs (methods) are packaged into a single unit called an object. OOP are event driven. Example of OOP languages include C ++, java and java applets Advantages of High-level Languages High-level languages permit faster development of large programs. The final program as executed by the computer is not as efficient, but the savings in programmer time generally far outweigh the inefficiencies of the finished product. This is because the cost of writing a program is nearly constant for each line of code, regardless of the language. Thus, a high-level language where each line of code translates to 10 machine instructions costs only one tenth as much in program development as a low-level language where each line of code represents only a single machine instruction. 1.4 Web page program development tools They are tools used to create web pages. Example of these tools includes: HTML (Hypertext MarkUp Language) - it s not actually a programming language but contains special codes used to create and format web pages. It usually uses tags that should be kept as an ASCII file Dynamic HTML(DHTML)-allows users to add more graphics and interactivity on the web page e.g. perform animations. Extensible MarkUp language (XML) allows web page developers to create tags that describe data pass to client so that the client can process the data rather than the server. 9
10 XHTML( extensible HTML) includes features of HTML and XML WML (Wireless Markup Language) allows web page developers to design pages specifically for micro browsers. It uses the Wireless Application Protocol (WAP) Web page authoring which include Dreamweaver, FrontPage, Joomla flash e.t.c. 1.5 Factors to consider while selecting a programming language The features of one programming language may differ from the other. One can be easy and simple, while others can be difficult and complex. A program written for a specific task may have few lines in one language, while many lines in the other. We judge the success and strength of a programming language with respect to standard features. There a number of factors while selecting a programming just to mention a few Ease of Use It s the most important factor in choosing a language. The language should be easy in writing codes for the programs and executing them. The ease and clarity of a language depends upon its syntax. It should be capable enough to provide clear, simple and unified set of concepts. The vocabulary of the language should resemble English (or some other natural language). Symbols, abbreviations and jargons should be avoided unless they are already known to most people. Any concept that cannot be easily explained to amateurs should not be included in the language. Good Programming Language Features Its definition should be independent of any particular hardware or operating system. It should support software engineering technology, discourage or prohibit poor practices, and promote or support maintenance activities. It should support the required level of system reliability and safety. If the language does not support the basic requirements, then it is advisable to learn a new language and then start the application development. Nature of Application Each language provides certain distinctive features, which separates it from other languages. For example, Java should be used to write an application that runs over the Internet, whereas to develop a system application, C and C++ are used. 10
11 Language Acquaintance In cases where a number of languages may suit the application to be developed, the most familiar language to the programmers should be chosen. Ease of Learning Sometimes, it may necessity the programmer has to learn a new language in order develop an application. In such a case, the first step is to find out which language, along with its alternatives, would be suitable for the proposed application. Then, the programmer has to decide which language is easier to learn and use. Control over Resources Apart from the ease of use, the control factor should also be considered while selecting a language. Easy to learn and use feature of the language does not mean that the application created with it will be the most powerful. Certain applications require more control over the hardware and hence the control factor should not be ignored. If the application developed by an easy language is not efficient enough, then it is better to slug it out with a more complex language. For example, Visual Basic provides an easier way to develop an application, but it does not have the same control over the resources as other languages such as Visual C++ or Delphi Speed Requirement Some applications e.g. railway or air reservation need to be quick as compared to batch processing applications such as payroll and inventory control. In such cases, the execution efficiency is important and the programmer should use assembly language instead of high-level languages. The main reason behind this is that assembly language usually has a shorter production time as compared to high-level languages. 1.6 Translators It s a program that converts source statement into machine language. The source statements are just like English words. The computer interprets the instructions as 1's and 0's. A program can be written in assembly language as well as in high-level language. This written program is called the source program. The source program is to be converted to the machine language, which is called an object program Translators can be classified as depicted below follows 11
12 Translators are as follows: a) Assembler b) Compiler c) Interpreter Assembler They are programs that convert assembly code to equivalent machine code. It will translate the symbolic codes of programs of an assembly language into machine language instructions. The symbolic language is translated to the machine code in the ratio of one is to one symbolic instructions to one machine code instructions Compiler It is a program which translates a high level language program into a machine language program. A compiler is more intelligent than an assembler. It checks all kinds of limits, ranges, errors etc. But its program run time is more and occupies a larger part of the memory. It s relatively slow in speed since it goes through the entire program and then translates the entire program into machine codes. If a compiler runs on a computer and produces the machine codes for the same computer then it is known as a self compiler or resident compiler. On the other hand, if a compiler runs on a computer and produces the machine codes for other computer then it is known as a cross compiler. Compilers will show errors and warnings for the statements violating the syntax rules of the language. They also have the ability of linking subroutines of the program Interpreter It translates high level languages into machine code. It translates only one statement of the program at a time. It reads only one statement of program, translates it and executes it. Then it reads the next statement of the program again translates it and executes it. In this way it proceeds further till all the statements are translated and executed. On the other hand, a compiler goes through the entire program and then translates the entire program into machine codes. A compiler is 5 to 25 times faster than an interpreter. 12
13 By the compiler, the machine codes are saved permanently for future reference. On the other hand, the machine codes produced by interpreter are not saved. An interpreter is a small program as compared to compiler. It occupies less memory space, so it can be used in a smaller system which has limited memory space. 1.7 The development environment and the development cycle Programs goes through 3 main phases during development: editing (writing the program), compiling (i.e., translating the program to executable code and detecting syntax errors) and running the program and checking for logical errors (called debugging). 1. Editing This involves typing in the program with a text editor and making corrections if necessary. The program is stored as a text file on the disk 2. Compile The translator converts the source into machine language code (object code), which it stores on the disk.a linker then links the object code with standard library routines that the program may use and creates an executable image, which is also saved on disk, usually as a file with the file name without any extension (e.g. hello). 3. Execute The executable is loaded from the disk to memory and CPU executes the program one instruction at a time. 1.8 Overview of C language It was developed in 1972 by Dennis Ritchie at the Bell telephone laboratories for use with Unix operating system. It was designed for system programming because of its low level memory management and its construct are close to the machine instructions. 1.9 C program structure and syntax Every C program consists of a header and a main body and has the following structure. // Comment statements, which are ignored by computer #include <header file name > Void main() { declaration of variables ; statements ; return 0; } We will consider each line of the above program for convenience the program is reproduced on the next page with line numbers to 13
14 allow us to comment on details of the program. However, you must not put line numbers in an actual program. 1. //sample program 2. #include "stdio.h" 3. void main() 4. { printf ("This is a line of text to output.\n"); 5. } Line 1: At the top of the program are comments and instructions, which will not be executed. Lines beginning with // indicate that the rest of the line is a comment. Comments are inserted by programmers to help people read and understand the program. Here the comment states the purpose of the program. Comments are not executed by the computer. They can in general be placed anywhere in a program. Line 2: Lines beginning with # are instructions to the compiler s pre-processor. They include instruction says what follows is a file name, find that file and insert its contents right here. It is used to include the contents of a file of definitions that may be used in the program. Line 3 The word main is very important, and must appear once (and only once) in every C program. This is the point where Introduction to Programming 14 execution is begun when the program is run. It does not have to be the first statement in the program but it must exist as the entry point. The use of the term main is actually a function definition. Functions must return a value and the term void is used to denote that the main program does not return a value. Following the main program name is a pair of parentheses, which are an indication to the compiler that this is a function. The two braces are used to define the limits of the program itself: in this case, the main function. The actual program statements go between the two braces. Line 4 The opening (left) brace marks the beginning of the main body of the program. The main body consists of instructions, which can be declarations defining the data or statements on how the data should be processed. All C declarations and statements must end with a semicolon. Line 5 printf is a predefined function. To sent output on the monitor, the text is put within the function parentheses and bounded by quotation marks. The definition of this function is defined in the STDIO library (the Standard Input/output library). To compile and link this program the #include statement is required. The end result is that whatever is included between the quotation marks in the
15 printf function will be displayed on the monitor when the program is run. Notice the semi-colon at the end of the line. C uses a semicolon as a statement terminator, so the semi-colon is required as a signal to the compiler that this line is complete. Line 6 The closing (right) brace marks the end of the main body of the program Chapter summary 1.11 Chapter exercise 1.12 Further reading suggestion 15
Unit. Programming Fundamentals. School of Science and Technology INTRODUCTION
INTRODUCTION Programming Fundamentals Unit 1 In order to communicate with each other, we use natural languages like Bengali, English, Hindi, Urdu, French, Gujarati etc. We have different language around
More informationTechnology in Action. Chapter Topics. Scope creep occurs when: 3/20/2013. Information Systems include all EXCEPT the following:
Technology in Action Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Chapter 10 Behind the Scenes: Software Programming Ninth Edition Chapter Topics Understanding software programming Life
More informationITC213: STRUCTURED PROGRAMMING. Bhaskar Shrestha National College of Computer Studies Tribhuvan University
ITC213: STRUCTURED PROGRAMMING Bhaskar Shrestha National College of Computer Studies Tribhuvan University Lecture 04: Introduction to C Readings: Chapter 1.5-1.7 What is C? C is a general-purpose, structured
More informationPreview from Notesale.co.uk Page 6 of 52
Binary System: The information, which it is stored or manipulated by the computer memory it will be done in binary mode. RAM: This is also called as real memory, physical memory or simply memory. In order
More informationIntroduction to Programming
Introduction to Programming Course ISI-1329 - Three Days - Instructor-Led Introduction This three-day, instructor-led course introduces students to computer programming. Students will learn the fundamental
More information1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem and Opportunity Identification D) Development
Technology In Action, Complete, 14e (Evans et al.) Chapter 10 Behind the Scenes: Software Programming 1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem
More informationHands-On Ethical Hacking and Network Defense 2 nd edition
Hands-On Ethical Hacking and Network Defense 2 nd edition Chapter 7 Programming for Security Professionals Last modified 9-29-16 Objectives Explain basic programming concepts Write a simple C program Explain
More informationTechnology in Action. Chapter Topics (cont.) Chapter Topics. Reasons for Software Programming. Information Systems 10/29/2010
Technology in Action Chapter 10 Behind the Scenes: Building Applications 1 2 Chapter Topics System development life cycle Life cycle of a program Problem statement Algorithms Moving from algorithm to code
More informationAbout Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals
More informationTHE CATHOLIC UNIVERSITY OF EASTERN AFRICA A. M. E. C. E. A
THE CATHOLIC UNIVERSITY OF EASTERN AFRICA A. M. E. C. E. A MAIN EXAMINATION P.O. Box 62157 00200 Nairobi - KENYA Telephone: 891601-6 Fax: 254-20-891084 E-mail:academics@cuea.edu AUGUST - DECEMBER 2015
More informationFeatures of C. Portable Procedural / Modular Structured Language Statically typed Middle level language
1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC
More informationInstructor. Mehmet Zeki COSKUN Assistant Professor at the Geodesy & Photogrammetry, Civil Eng. (212)
Instructor Mehmet Zeki COSKUN Assistant Professor at the Geodesy & Photogrammetry, Civil Eng. (212) 285-6573 coskunmeh@itu.edu.tr http://atlas.cc.itu.edu.tr/~coskun Address Consultation of Students: Monday
More informationProgramming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan
Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah Lecturer Department of Computer Science & IT University of Balochistan 1 Outline p Introduction p Program development p C language and beginning with
More informationCPS122 Lecture: From Python to Java last revised January 4, Objectives:
Objectives: CPS122 Lecture: From Python to Java last revised January 4, 2017 1. To introduce the notion of a compiled language 2. To introduce the notions of data type and a statically typed language 3.
More informationCS Prof J.P.Morrison
CS1061 2018-2019 Prof J.P.Morrison C Programming C is the most popular language worldwide. Everything from microcontrollers to operating systems is written in C flexible and versatile, allowing maximum
More informationModule 1: Introduction to Computers, Programs, and Java
Module 1: Introduction to Computers, Programs, and Java Module 1: Introduction to Java page 1 Objectives To review Program Design and Problem-Solving Techniques To describe the relationship between Java
More informationDiscovering Computers Chapter 13 Programming Languages and Program Development
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development Chapter 13 Objectives Differentiate between machine and assembly languages Identify and discuss the purpose of procedural
More informationIntroduction to Basis and Practice in Programming
Introduction to Basis and Practice in Programming Fall 2015 Jinkyu Jeong (jinkyu@skku.edu) 1 Course Overview Course Basics! Class hour GEDB029-45: Mon. 13:00 ~ 14:50 GEDB029-46: Tue. 13:00 ~ 14:50 1~2
More informationEngineering Computing M1H Together Towards A Green Environment
Engineering Computing M1H321538 Module Induction Course Resources Lecture/Tutorial hours Course Syllabus Assessment Procedure Expectation from the Students General Terms and Conditions Course Resources
More informationTechnology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Eleventh Edition Technology in Action Chapter 8 Behind the Scenes: Software Programming 2 Topics Understanding Software Programming The Importance
More informationFundamentals of Programming. Lecture 3: Introduction to C Programming
Fundamentals of Programming Lecture 3: Introduction to C Programming Instructor: Fatemeh Zamani f_zamani@ce.sharif.edu Sharif University of Technology Computer Engineering Department Outline A Simple C
More informationProgramming Languages and Program Development Life Cycle Fall Introduction to Information and Communication Technologies CSD 102
Programming Languages and Program Development Life Cycle Fall 2016 Introduction to Information and Communication Technologies CSD 102 Outline The most common approaches to program design and development
More informationCIS* Programming
CIS*1300 - Programming CALENDAR DESCRIPTION This course examines the applied and conceptual aspects of programming. Topics may include data and control structures, program design, problem solving and algorithm
More informationBIL 104E Introduction to Scientific and Engineering Computing. Lecture 1
BIL 104E Introduction to Scientific and Engineering Computing Lecture 1 Introduction As engineers and scientists why do we need computers? We use computers to solve a variety of problems ranging from evaluation
More informationCPS122 Lecture: From Python to Java
Objectives: CPS122 Lecture: From Python to Java last revised January 7, 2013 1. To introduce the notion of a compiled language 2. To introduce the notions of data type and a statically typed language 3.
More informationWeek 1 Introduction to Computer and Algorithm (Part1) UniMAP Sem II 11/12 DKT121: Basic Computer Programming 1
Week 1 Introduction to Computer and Algorithm (Part1) UniMAP Sem II 11/12 DKT121: Basic Computer Programming 1 General Information Contributes 3 units: 2 hours lectures 2 hours labs and tutorials Main
More informationCS 241 Data Organization. August 21, 2018
CS 241 Data Organization August 21, 2018 Contact Info Instructor: Dr. Marie Vasek Contact: Private message me on the course Piazza page. Office: Room 2120 of Farris Web site: www.cs.unm.edu/~vasek/cs241/
More informationEC 413 Computer Organization
EC 413 Computer Organization C/C++ Language Review Prof. Michel A. Kinsy Programming Languages There are many programming languages available: Pascal, C, C++, Java, Ada, Perl and Python All of these languages
More informationTopic 1: Programming concepts
Topic 1: Programming concepts Learning Outcomes Upon successful completion of this topic you will be able to: identify stages of a program development implement algorithm design techniques break down a
More informationDEPARTMENT OF COMPUTER AND MATHEMATICAL SCIENCES UNIVERSITI TEKNOLOGI MARA CAWANGAN PULAU PINANG
DEPARTMENT OF COMPUTER AND MATHEMATICAL SCIENCES UNIVERSITI TEKNOLOGI MARA CAWANGAN PULAU PINANG PROGRAMME Diploma in Civil Engineering Diploma in Mechanical Engineering COURSE/CODE Fundamentals of Computer
More informationCSCE150A. Administrivia. Overview. Hardware. Software. Example. Program. Pseudocode. Flowchart. Control Structures. Hello World Program CSCE150A
Computer Science & Engineering 150A Problem Solving Using Computers Lecture 01 - Course Introduction Stephen Scott (Adapted from Christopher M. Bourke) Roll Syllabus Course Webpage: http://cse.unl.edu/~sscott/teach/classes/cse150af09/
More informationComputer Science & Engineering 150A Problem Solving Using Computers
Computer Science & Engineering 150A Problem Solving Using Computers Lecture 01 - Course Introduction Stephen Scott (Adapted from Christopher M. Bourke) 1 / 43 Fall 2009 Roll Syllabus Course Webpage: http://cse.unl.edu/~sscott/teach/classes/cse150af09/
More informationEKT 120/4 Computer Programming KOLEJ UNIVERSITI KEJURUTERAAN UTARA MALAYSIA
EKT 120/4 Computer Programming KOLEJ UNIVERSITI KEJURUTERAAN UTARA MALAYSIA AZUWIR MOHD NOR ROOM: Pusat Pengajian CABIN C PHONE: (04) 979 8249 Email: azuwir@kukum.edu.my Office hours: make appoinment or
More informationITT Technical Institute. ET2560T Introduction to C Programming Onsite and Online Course SYLLABUS
ITT Technical Institute ET2560T Introduction to C Programming Onsite and Online Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 67 (41 Theory Hours, 26 Lab Hours Prerequisite(s and/or Corequisite(s:
More informationPrinciples of computer programming. Profesor : doc. dr Marko Tanasković Assistent : doc. dr Marko Tanasković
Principles of computer programming Profesor : doc. dr Marko Tanasković Assistent : doc. dr Marko Tanasković E-mail: mtanaskovic@singidunum.ac.rs Course organization Lectures: Presentation of concepts and
More informationLECTURE/ STUDY NOTES ON C
LECTURE/ STUDY NOTES ON C PART I (Overview of C Programming) Introduction of C language History of C Importance of C Demerits of C Basic Structure of C Working steps of C compiler Source Code Object Code
More informationObject Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz
Object Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz tabbasum.naz@ciitlahore.edu.pk Course Outline Course Title Object Oriented Concepts and Course Code Credit Hours 4(3,1) Programming
More informationB. Subject-specific skills B1. Problem solving skills: Supply the student with the ability to solve different problems related to the topics
Zarqa University Faculty: Information Technology Department: Computer Science Course title: Programming LAB 1 (1501111) Instructor: Lecture s time: Semester: Office Hours: Course description: This introductory
More informationUNIT - I. Introduction to C Programming. BY A. Vijay Bharath
UNIT - I Introduction to C Programming Introduction to C C was originally developed in the year 1970s by Dennis Ritchie at Bell Laboratories, Inc. C is a general-purpose programming language. It has been
More informationSTUDENT OUTLINE. Lesson 8: Structured Programming, Control Structures, if-else Statements, Pseudocode
STUDENT OUTLINE Lesson 8: Structured Programming, Control Structures, if- Statements, Pseudocode INTRODUCTION: This lesson is the first of four covering the standard control structures of a high-level
More informationFull file at
Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class
More informationComputer Fundamentals
Computer Fundamentals 1 Draw the block diagram of computer architecture and explain each block. Computer is made up of mainly four components, 1) Central processing unit (CPU) 2) Input section 3) Output
More informationPace University. Fundamental Concepts of CS121 1
Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction
More informationObjective: To learn meaning and concepts of programming. Outcome: By the end of this students should be able to describe the meaning of programming
30 th September 2018 Objective: To learn meaning and concepts of programming Outcome: By the end of this students should be able to describe the meaning of programming Section 1: What is a programming
More informationLecture 1: Preliminaries
Lecture 1: Preliminaries Edgardo Molina Department of Computer Science City College of New York August 30, 2011 Edgardo Molina (CS@CCNY) Lecture 1 August 30, 2011 1 / 44 Info and Schedule Course Info and
More informationCSc 10200! Introduction to Computing. Lecture 1 Edgardo Molina Fall 2013 City College of New York
CSc 10200! Introduction to Computing Lecture 1 Edgardo Molina Fall 2013 City College of New York 1 Introduction to Computing Lectures: Tuesday and Thursday s (2-2:50 pm) Location: NAC 1/202 Recitation:
More informationLow-Level Languages. Computer Programs and Programming Languages
Computer Programs and Programming Languages What is a computer program? Set of instructions that directs computer to perform tasks Programming used to write instructions 1 Computer Programs and Programming
More informationPROGRAMMAZIONE I A.A. 2017/2018
PROGRAMMAZIONE I A.A. 2017/2018 PROGRAMMING LANGUAGES A programming language is a formal language that specifies a set of instructions that can be used to produce various kinds of output. Programming languages
More informationAE Computer Programming for Aerospace Engineers
AE 030 - Computer Programming for Aerospace Engineers Instructor Information: Credit: Professor Long Lu Long.Lu@sjsu.edu 2 units Class Times & Locations: Section 01 (Lecture): M 16:30-17:20 in CL 226 Section
More informationENT 189: COMPUTER PROGRAMMING. H/P: Home page:
ENT 189: COMPUTER PROGRAMMING Dr. PAULRAJ M P, Associate Professor, School of Mechatronic Engineering, #42- Level 2, Ulu Pauh New Campus 02600-Arau. PERLIS Email: paul@unimap.edu.my H/P: 017 5103757 Home
More informationCompiler Design. Computer Science & Information Technology (CS) Rank under AIR 100
GATE- 2016-17 Postal Correspondence 1 Compiler Design Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts,
More informationCTI Short Learning Programme in Internet Development Specialist
CTI Short Learning Programme in Internet Development Specialist Module Descriptions 2015 1 Short Learning Programme in Internet Development Specialist (10 months full-time, 25 months part-time) Computer
More informationSoftware Concepts. It is a translator that converts high level language to machine level language.
Software Concepts One mark questions: 1. What is a program? It is a set of instructions given to perform a task using a programming language. 2. What is hardware? It is defined as physical parts of the
More informationAdministration Computers Software Algorithms Programming Languages
Administration Computers Software Algorithms Programming Languages http://www.cs.sfu.ca/cc/130/johnwill/ This course does not use Canvas John Edgar 3 Come to class Read ahead Attend the labs You get practice
More informationCS 113: Introduction to
CS 113: Introduction to Course information MWF 12:20-1:10pm 1/21-2/15, 306 Hollister Hall Add/drop deadline: 1/28 C Instructor: David Crandall See website for office hours and contact information Prerequisites
More informationICOM 4015: Advanced Programming
ICOM 4015: Advanced Programming Lecture 1 Reading: Chapter One: Introduction Chapter 1 Introduction Chapter Goals To understand the activity of programming To learn about the architecture of computers
More informationChapter 1. Preliminaries
Chapter 1 Preliminaries Chapter 1 Topics Reasons for Studying Concepts of Programming Languages Programming Domains Language Evaluation Criteria Influences on Language Design Language Categories Language
More informationComputer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software.
Hardware and Software Computer Basics TOPICS Computer Organization Data Representation Program Execution Computer Languages Computer systems consist of hardware and software. Hardware includes the tangible
More informationB.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University
Unit 1 Programming Language and Overview of C 1. State whether the following statements are true or false. a. Every line in a C program should end with a semicolon. b. In C language lowercase letters are
More informationTutorial No. 2 - Solution (Overview of C)
Tutorial No. 2 - Solution (Overview of C) Computer Programming and Utilization (2110003) 1. Explain the C program development life cycle using flowchart in detail. OR Explain the process of compiling and
More informationComputer Organization & Assembly Language Programming
Computer Organization & Assembly Language Programming CSE 2312 Lecture 11 Introduction of Assembly Language 1 Assembly Language Translation The Assembly Language layer is implemented by translation rather
More informationComputer Principles and Components 1
Computer Principles and Components 1 Course Map This module provides an overview of the hardware and software environment being used throughout the course. Introduction Computer Principles and Components
More informationFundamentals of Programming Session 4
Fundamentals of Programming Session 4 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2011 These slides are created using Deitel s slides, ( 1992-2010 by Pearson Education, Inc).
More informationPROBLEM SOLVING AND PYTHON PROGRAMMING
ALGORITHM UNIT-1 It is defined as a sequence of instructions that describe a method for solving a problem. In other words it is a step by step procedure for solving a problem. Properties of Algorithms
More informationC & Data Structures syllabus
syllabus Overview: C language which is considered the mother of all languages, is and will be the most sought after programming language for any beginner to jump start his career in software development.
More informationReview. Modules. CS 151 Review #6. Sample Program 6.1a:
Review Modules A key element of structured (well organized and documented) programs is their modularity: the breaking of code into small units. These units, or modules, that do not return a value are called
More informationFundamentals of Programming (Python) Basic Concepts. Ali Taheri Sharif University of Technology Spring 2018
Fundamentals of Programming (Python) Basic Concepts Ali Taheri Sharif University of Technology Outline 1. What is a Computer? 2. Computer System Organization 3. What is a Computer Program? 4. Programming
More informationITC213: STRUCTURED PROGRAMMING. Bhaskar Shrestha National College of Computer Studies Tribhuvan University
ITC213: STRUCTURED PROGRAMMING Bhaskar Shrestha National College of Computer Studies Tribhuvan University Lecture 03: Program Development Life Cycle Readings: Not Covered in Textbook Program Development
More informationUpdated: 2/14/2017 Page 1 of 6
MASTER SYLLABUS 2017-2018 A. Academic Division: Business, Industry, and Technology B. Discipline: Engineering Technology C. Course Number and Title: ENGR1910 Engineering Programming D. Course Coordinator:
More informationAn Introduction to Python (TEJ3M & TEJ4M)
An Introduction to Python (TEJ3M & TEJ4M) What is a Programming Language? A high-level language is a programming language that enables a programmer to write programs that are more or less independent of
More informationSoftware Development. Integrated Software Environment
Software Development Integrated Software Environment Source Code vs. Machine Code What is source code? Source code and object code refer to the "before" and "after" versions of a computer program that
More informationIntro to Computer Programming (ICP) Rab Nawaz Jadoon
Intro to Computer Programming (ICP) Rab Nawaz Jadoon DCS COMSATS Institute of Information Technology Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) What
More informationG. PULLAIAH COLLEGE OF ENGINEERING AND TECHNOLOGY Pasupula, Nandikotkur Road, Kurnool
G. PULLAIAH COLLEGE OF ENGINEERING AND TECHNOLOGY Pasupula, Nandikotkur Road, Kurnool-518014 BRANCH: COMPUTER SCIENCE AND ENGINEERING COURSE DESCRIPTION FORM Course Title Course Code Regulation Course
More informationNOTE: Answer ANY FOUR of the following 6 sections:
A-PDF MERGER DEMO Philadelphia University Lecturer: Dr. Nadia Y. Yousif Coordinator: Dr. Nadia Y. Yousif Internal Examiner: Dr. Raad Fadhel Examination Paper... Programming Languages Paradigms (750321)
More informationComputer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.
Hardware and Software Computer Basics TOPICS Computer Organization Data Representation Program Execution Computer Languages Computer systems consist of hardware and software. Hardware includes the tangible
More informationTechnology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Tenth Edition. Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Tenth Edition Technology in Action Chapter 8 Behind the Scenes: Software Programming 2 Chapter Topics Understanding Software Programming
More informationC Language Part 1 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee
C Language Part 1 (Minor modifications by the instructor) References C for Python Programmers, by Carl Burch, 2011. http://www.toves.org/books/cpy/ The C Programming Language. 2nd ed., Kernighan, Brian,
More informationC Language, Token, Keywords, Constant, variable
C Language, Token, Keywords, Constant, variable A language written by Brian Kernighan and Dennis Ritchie. This was to be the language that UNIX was written in to become the first "portable" language. C
More informationWeb Technologies. Course Outline, Administrivia, Getting Started at CSSE An introduction to the Internet and the WWW. Dr Wei Liu
Web Technologies Course Outline, Administrivia, Getting Started at CSSE An introduction to the Internet and the WWW 1 Dr Wei Liu Lecture Overview Unit Outline Administrivia What is the Internet What is
More informationPseudo Code and Flow Charts. Chapter 1 Lesson 2
Pseudo Code and Flow Charts Chapter 1 Lesson 2 Pseudocode Using Pseudocode Statements and Flowchart Symbols English-like representation of the logical steps it takes to solve a problem Flowchart Pictorial
More informationintroduction week 1 Ritsumeikan University College of Information Science and Engineering Ian Piumarta 1 / 20 imperative programming about the course
week 1 introduction Ritsumeikan University College of Information Science and Engineering Ian Piumarta 1 / 20 class format 30 minutes (give or take a few) presentation 60 minutes (give or take a few) practice
More informationChapter 1 & 2 Introduction to C Language
1 Chapter 1 & 2 Introduction to C Language Copyright 2007 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 & 2 - Introduction to C Language 2 Outline 1.1 The History
More informationC-LANGUAGE CURRICULAM
C-LANGUAGE CURRICULAM Duration: 2 Months. 1. Introducing C 1.1 History of C Origin Standardization C-Based Languages 1.2 Strengths and Weaknesses Of C Strengths Weaknesses Effective Use of C 2. C Fundamentals
More informationScheme of work Cambridge International AS & A Level Computing (9691)
Scheme of work Cambridge International AS & A Level Computing (9691) Unit 2: Practical programming techniques Recommended prior knowledge Students beginning this course are not expected to have studied
More informationINTRODUCTION 1 AND REVIEW
INTRODUTION 1 AND REVIEW hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Programming: Advanced Objectives You will learn: Program structure. Program statements. Datatypes. Pointers. Arrays. Structures.
More informationComputer Software: Introduction
Software: A collection of programs Computer Software: Introduction Program: Sequence of instructions for the computer to carry out Programs written using a programming language Types of languages: Machine
More information9/5/2018. Overview. The C Programming Language. Transitioning to C from Python. Why C? Hello, world! Programming in C
Overview The C Programming Language (with material from Dr. Bin Ren, William & Mary Computer Science) Motivation Hello, world! Basic Data Types Variables Arithmetic Operators Relational Operators Assignments
More informationPrograms are: CMPSCI 105/119/120: Programming, Flowchar<ng, and Running Program Flowcharts
Programs are: CMPSCI 105/119/120: Programming, Flowchar
More informationCHAPTER 1: INTRODUCTION TO COMPUTERS AND PROGRAMMING. 1 Muhalim Mohamed Amin Faculty of
CHAPTER 1: INTRODUCTION TO COMPUTERS AND PROGRAMMING 1 Muhalim Mohamed Amin Faculty of Computing @2015/2016-1 Objectives In this chapter, you will learn: Basic computer concepts. The different types of
More informationIntroduction to Software Development (ISD) David Weston and Igor Razgon
Introduction to Software Development (ISD) David Weston and Igor Razgon Autumn term 2013 Course book The primary book supporting the ISD module is: Java for Everyone, by Cay Horstmann, 2nd Edition, Wiley,
More informationIntroduction to Computers and Programming Languages. CS 180 Sunil Prabhakar Department of Computer Science Purdue University
Introduction to Computers and Programming Languages CS 180 Sunil Prabhakar Department of Computer Science Purdue University 1 Objectives This week we will study: The notion of hardware and software Programming
More informationChapter 1: Introduction to Computers and Java
Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 1 discusses the following main topics:
More informationThe C Programming Language. (with material from Dr. Bin Ren, William & Mary Computer Science)
The C Programming Language (with material from Dr. Bin Ren, William & Mary Computer Science) 1 Overview Motivation Hello, world! Basic Data Types Variables Arithmetic Operators Relational Operators Assignments
More informationChapter 9. Introduction to High-Level Language Programming. INVITATION TO Computer Science
Chapter 9 Introduction to High-Level Language Programming INVITATION TO Computer Science 1 Objectives After studying this chapter, students will be able to: Explain the advantages of high-level programming
More information8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java
Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Objects Fifth Edition by Tony Gaddis Chapter Topics Chapter 1 discusses the following main topics:
More informationChapter 1 Introduction to Computers, Programs, and Java. What is a Computer? A Bit of History
Chapter 1 Introduction to Computers, Programs, and Java CS170 Introduction to Computer Science 1 What is a Computer? A machine that manipulates data according to a list of instructions Consists of hardware
More informationECS15, Lecture 10. Goals of this course 2/8/13. Mini-Review & Topic 3.2 Software. Today s agenda
Today s agenda ECS15, Lecture 10 Mini-Review & Topic 3.2 Software Review the lectures. Sample midterm to be posted late today/tonight. Extra credit (1pt) turn in Monday 9:30am Finish up details on Topic
More informationProgramming Language Basics
Programming Language Basics Lecture Outline & Notes Overview 1. History & Background 2. Basic Program structure a. How an operating system runs a program i. Machine code ii. OS- specific commands to setup
More information1) Which of the following is an example of a programming language? 1) A) Microsoft Word B) English C) HTML D) Java
FALL 07-08 CIS105(CP105)/CE205 MIDTERM-2 EXAM /FACULTY OF ECON. &ADMIN. SCIENCES OF EUL Student Registration No: Instructor: Prof.Dr.Hüseyin Oğuz Student Name-Surname: Dept. of Computer Information Systems
More informationComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Computer Fundamentals Pradeep K. Sinha Priti Sinha Chapter 12 Computer Languages Slide 1/64 Learning Objectives In this chapter you will learn about: Computer languages or programming languages Three broad
More information