Introduction to Computer Programming Using C Session 23 - Review.

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

Overview of programming in C C is a fast, efficient, flexible programming language Paradigm: C is procedural (like Fortran, Pascal), not object oriented.
Senem Kumova Metin Introduction to Programming CS 115 Introduction to Computing PART I : Computer Basics PART II: Introduction to Computing/Programming.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
COSC 120 Computer Programming
Program Flow Charting How to tackle the beginning stage a program design.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Chapter 2: Input, Processing, and Output
An Introduction to Programming with C++ Fifth Edition Chapter 4 Chapter 4: Variables, Constants, and Arithmetic Operators.
Topic R3 – Review for the Final Exam. CISC 105 – Review for the Final Exam Exam Date & Time and Exam Format The final exam is 120-minutes, closed- book,
An Introduction to Programming with C++ Fifth Edition Chapter 4 Chapter 4: Variables, Constants, and Arithmetic Operators.
Guide To UNIX Using Linux Third Edition
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Testing a program Remove syntax and link errors: Look at compiler comments where errors occurred and check program around these lines Run time errors:
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Programming Logic and Design Fourth Edition, Introductory
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
CMSC 104, Version 8/061L18Functions1.ppt Functions, Part 1 of 4 Topics Using Predefined Functions Programmer-Defined Functions Using Input Parameters Function.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
CIS Computer Programming Logic
CISC105 General Computer Science Class 1 – 6/5/2006.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Chapter 1 Introduction to Computers In this chapter we describe the major components of a computer system and explain how information is represented in.
C Programming language
Computer Programming TCP1224 Chapter 4 Variables, Constants, and Arithmetic Operators.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
An Object-Oriented Approach to Programming Logic and Design Chapter 1 An Overview of Computers and Logic.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
1 IPC144 Session 14 The C Programming Language. 2 Objectives Predict the automatic conversion of data types using the promotion hierarchy Use the promotion.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Chapter 4 Chapter 4: Variables, Constants, and Arithmetic Operators.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
Chapter 1: Introduction to Computers and Programming
Chapter 1 Introduction 2nd Semester H
Lecture2.
Chapter 9: Value-Returning Functions
Introduction to the C Language
1-1 Logic and Syntax A computer program is a solution to a problem.
Chapter 2: Input, Processing, and Output
DDC 1023 – Programming Technique
Chapter 7 Text Input/Output Objectives
System Design.
Test Review Computer Science History
Chapter 1. Introduction to Computers and Programming
The Selection Structure
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Programming Right from the Start with Visual Basic .NET 1/e
Programming Funamental slides
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Lecture3.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Introduction to Computer Programming
An Introduction to Programming with C++ Fifth Edition
Chapter 2: Input, Processing, and Output
Programming Logic and Design Eighth Edition
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Introduction to Computer Programming Using C Session 23 - Review

Objectives: By the end of this session, the student will be able to: Name and define 5 categories of Computer Architecture Show how these categories inter-relate Define the function of input devices Define the function of output devices Define the function of Primary Storage Distinguish between addresses and data List the two parts of the CPU Describe the function of each part of the CPU Define the function of Secondary Storage Describe the interaction between: Hardware Operating System Application Software User 3

Objectives: By the end of this session, the student will be able to: List the first three stages of the evolution of computer languages Compare the three stages from a programmer's point of view List other 3GL languages Construct Boolean Logic Charts Apply Boolean Logic to problems List the steps in a model Systems Development Life Cycle Describe the purpose of each of the model steps List the 7 steps of a model Program Development Cycle Describe the purpose of each step of the PDC List the steps that occur when compiling a computer program 4

Objectives: By the end of this session, the student will be able to: Explain the purpose of the IPO Chart List which columns of an IPO Chart contain verbs, which contain nouns Represent a word problem in an IPO Chart Explain the purpose of a Hierarchy Chart Develop a Hierarchy chart for a word problem Define Module Cohesion List 4 of the 7 levels of module cohesion 5

Objectives: By the end of this session, the student will be able to: List the three elements of the Structure Theorem Identify the symbols used in flowcharts Recognize the flowchart symbols and their meaning Construct the elements of the Structure Theorem using Flowcharts 4

6 Objectives Design good test data Synthesize a Test Plan from test data Apply a rigorous approach to testing flowcharts using Walkthroughs

7 Objectives To write pseudocode To convert Flowcharts into Pseudocode To perform walkthroughs on pseudocode To represent data files in flowcharts and pseudocode To represent arrays in flowcharts and pseudocode

8 Objectives Review the structure of UNIX To recall basic UNIX commands to perform typical user functions on a UNIX machine To be prepared for Lab#1

9 Objectives Construct the basic structure of a C program Use this structure in creating programs that can be compiled List the data types used in C Differentiate between integer and float data types Select the most appropriate data type for the data Explain the purpose of the #include statement Use the #include to include system libraries and user libraries Apply coding conventions to provide the approved layout of a program Apply coding conventions in the creation of variable names Apply coding conventions in the creation of C statements Apply coding conventions in the creation of C comments

10 Objectives To correctly create an assignment statement in C To use the assignment statement in C to initialize or set a variable to a value To correctly form an arithmetic statement in C To use arithmetic statements to modify the value of a variable To correctly form a relational statement in C To evaluate the result of relational expressions To correctly express logical expressions using C logical operators To interpret the Order of Precedence table To correctly determine the sequence in which an expression will be evaluated To format a #define statement correctly To use a #define statement in a C program To construct a printf() statement To use a printf() statement in a C program To construct a scanf() statement To use a scanf() statement in a C program

11 Objectives To convert pseudocode into C code To develop the basis for working with pointers in C.

12 Objectives Predict the automatic conversion of data types using the promotion hierarchy Use the promotion hierarchy to determine the stored result of a calculation Define the purpose of the cast operator Use the cast operator to override automatic conversions of data types. To name the elements of a function declaration To construct a function declaration and its prototype To differentiate between Pass-by-reference and Pass-by-value To declare a function that is capable of altering contents of a variable in the calling module

13 Objectives To define arrays within the C language To use arrays in a C program To pass arrays between functions Define what a string is List the three methods strings can be stored in a computer. Use arrays to store strings List the standard C functions for manipulating strings List the parameters for the C string functions, and their restrictions Use the C string functions to manipulate strings List the file open and close functions, with their parameters and return values List the three modes to open a file in Explain the behavior of the computer when opening existing and non-existent files under these modes Use the file commands to read formatted and unformatted data from text files

14 Objectives List the file open and close functions, with their parameters and return values List the three modes to open a file in Explain the behaviour of the computer when opening existing and non-existent files under these modes Use the file commands to read formatted and unformatted data from text files

15 Objectives To define the three levels of scope To show the scope limits of variables within a C program Show the syntax to declare a structure Pass structures to functions Show the structure of Assignment Operators Predict the result of a statement that uses Assignment Operators Use Assignment Operators in C code List data classification functions, and how they behave for different data values Use the classification functions in C code List data conversion functions, and what the nature of the conversion is Use data conversion functions in C code