15
Introduction to Computer Programming Using C Session 23 - Review

Introduction to Computer Programming Using C Session 23 - Review

Embed Size (px)

Citation preview

Page 1: Introduction to Computer Programming Using C Session 23 - Review

Introduction to Computer ProgrammingUsing C

Session 23 - Review

Page 2: 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 ArchitectureShow how these categories inter-relateDefine the function of input devicesDefine the function of output devicesDefine the function of Primary StorageDistinguish between addresses and dataList the two parts of the CPUDescribe the function of each part of the CPUDefine the function of Secondary StorageDescribe the interaction between:

Hardware Operating System Application Software User

3

Page 3: Introduction to Computer Programming Using C Session 23 - Review

Objectives:By the end of this session, the student will be able to:List the first three stages of the evolution of computer languagesCompare the three stages from a programmer's point of viewList other 3GL languagesConstruct Boolean Logic ChartsApply Boolean Logic to problemsList the steps in a model Systems Development Life CycleDescribe the purpose of each of the model stepsList the 7 steps of a model Program Development CycleDescribe the purpose of each step of the PDCList the steps that occur when compiling a computer program

4

Page 4: Introduction to Computer Programming Using C Session 23 - Review

Objectives:By the end of this session, the student will be able to:Explain the purpose of the IPO ChartList which columns of an IPO Chart contain verbs, which contain nounsRepresent a word problem in an IPO ChartExplain the purpose of a Hierarchy ChartDevelop a Hierarchy chart for a word problemDefine Module CohesionList 4 of the 7 levels of module cohesion

5

Page 5: Introduction to Computer Programming Using C Session 23 - Review

Objectives:By the end of this session, the student will be able to:List the three elements of the Structure TheoremIdentify the symbols used in flowchartsRecognize the flowchart symbols and their meaningConstruct the elements of the Structure Theorem using Flowcharts

4

Page 6: Introduction to Computer Programming Using C Session 23 - Review

6

Objectives

Design good test dataSynthesize a Test Plan from test dataApply a rigorous approach to testing flowcharts using Walkthroughs

Page 7: Introduction to Computer Programming Using C Session 23 - Review

7

Objectives

To write pseudocodeTo convert Flowcharts into PseudocodeTo perform walkthroughs on pseudocodeTo represent data files in flowcharts and pseudocodeTo represent arrays in flowcharts and pseudocode

Page 8: Introduction to Computer Programming Using C Session 23 - Review

8

Objectives

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

Page 9: Introduction to Computer Programming Using C Session 23 - Review

9

Objectives

Construct the basic structure of a C programUse this structure in creating programs that can be compiledList the data types used in CDifferentiate between integer and float data typesSelect the most appropriate data type for the dataExplain the purpose of the #include statementUse the #include to include system libraries and user librariesApply coding conventions to provide the approved layout of a programApply coding conventions in the creation of variable namesApply coding conventions in the creation of C statementsApply coding conventions in the creation of C comments

Page 10: Introduction to Computer Programming Using C Session 23 - Review

10

Objectives

To correctly create an assignment statement in CTo use the assignment statement in C to initialize or set a variable to a valueTo correctly form an arithmetic statement in CTo use arithmetic statements to modify the value of a variableTo correctly form a relational statement in CTo evaluate the result of relational expressionsTo correctly express logical expressions using C logical operatorsTo interpret the Order of Precedence tableTo correctly determine the sequence in which an expression will be evaluatedTo format a #define statement correctlyTo use a #define statement in a C programTo construct a printf() statementTo use a printf() statement in a C programTo construct a scanf() statementTo use a scanf() statement in a C program

Page 11: Introduction to Computer Programming Using C Session 23 - Review

11

Objectives

To convert pseudocode into C codeTo develop the basis for working with pointers in C.

Page 12: Introduction to Computer Programming Using C Session 23 - Review

12

Objectives

Predict the automatic conversion of data types using the promotion hierarchyUse the promotion hierarchy to determine the stored result of a calculationDefine the purpose of the cast operatorUse the cast operator to override automatic conversions of data types.To name the elements of a function declarationTo construct a function declaration and its prototypeTo differentiate between Pass-by-reference and Pass-by-valueTo declare a function that is capable of altering contents of a variable in the calling module

Page 13: Introduction to Computer Programming Using C Session 23 - Review

13

Objectives

To define arrays within the C languageTo use arrays in a C programTo pass arrays between functionsDefine what a string isList the three methods strings can be stored in a computer.Use arrays to store stringsList the standard C functions for manipulating stringsList the parameters for the C string functions, and their restrictionsUse the C string functions to manipulate stringsList the file open and close functions, with their parameters and return valuesList the three modes to open a file inExplain the behavior of the computer when opening existing and non-existent files under these modesUse the file commands to read formatted and unformatted data from text files

Page 14: Introduction to Computer Programming Using C Session 23 - Review

14

Objectives

List the file open and close functions, with their parameters and return valuesList the three modes to open a file inExplain the behaviour of the computer when opening existing and non-existent files under these modesUse the file commands to read formatted and unformatted data from text files

Page 15: Introduction to Computer Programming Using C Session 23 - Review

15

Objectives

To define the three levels of scopeTo show the scope limits of variables within a C programShow the syntax to declare a structurePass structures to functionsShow the structure of Assignment OperatorsPredict the result of a statement that uses Assignment OperatorsUse Assignment Operators in C codeList data classification functions, and how they behave for different data valuesUse the classification functions in C codeList data conversion functions, and what the nature of the conversion isUse data conversion functions in C code