Sunteți pe pagina 1din 12

MALAYSIA POLYTECHNICS MINISTRY OF EDUCATION

MODULE E3062
PROGRAMMING
MOHD RUDIN B. FAUZI (PKB) ZULKIFFLI B. MOHD YUSOFF (PKB)

BIODATA OF MODULE WRITERS E3062 PROGRAMMING 1

Name Address

: :

Telephone No. : e-mail : Qualifications :

Position

Mohd Rudin B. Fauzi Electrical Engineering Department Politeknik Kota Bharu, Pangkal Kalong 16450 Kota Bharu, Kelantan. 09-7889126 mrudin@tm.net.my M.Ed. (UTM), Bsc (Hons) in Electrical Eng.(UTM), Diploma in Electrical Eng. (ITM) Polytechnic Lecturer

Name Address

: :

Telephone No. : e-mail : Qualifications :

Zulkiffli Bin Mohd Yusoff Electrical Engineering Department Politeknik Kota Bharu, Pangkal Kalong 16450 Kota Bharu Kelantan. 09-7889126 zulzur@tm.net.my M.Ed. (UTM), Bsc (Hons) in Electrical Eng.(UTM), Diploma in Electrical (Power) Eng.(ITM) Polytechnic Lecturer

Position

Editor
Name : Address : Telephone No. : e-mail : Qualifications : Position :

What Do You Think Of This Module?


Title of Module: _______________________ Module Code : ___________

Students Name: _______________________

Registration No. : ___________

Course: ____________________________________ Module Writers: ______________________________ Please use the following scale for your evaluation:
4 3 2 1 Strongly Agree Agree Disagree Strongly Disagree

Instruction : Please on the space provided. No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 How much do you agree with the following statements? A. FORMAT The pages are organized in an interesting manner. The font size makes it easy for me to read the module. The size and types of pictures and charts used are suitable for the input. The pictures and charts are easy to read and understand. The tables used are well-organised and easy to understand. The arrangement of the Input makes it easy for me to follow. All the instructions are displayed clearly. B. CONTENTS I understand all the objectives clearly. I understand the ideas conveyed. The ideas are presented in an interesting manner. All the instructions are easy to understand. I can carry out the instructions in this module. I can answer the questions in the activities easily. I can answer the questions in the self-assessment. The feedback section can help me identify my mistakes. The language used is easy to understand. The way the module is written makes it interesting to read. I can follow this module easily. Each unit helps me understand the topic better. I have become more interested in the subject after using this module. 1 SCALE 2 3 4

CURRICULUM GRID
The curriculum grid of this module is based on the curriculum used by Malaysian polytechnics. No. TOPIC UNIT Total Hours 2 Hours

Basic Concept And Problem Solving Programming Introduction To The Concept And Basic Instruction Programming C++ Data Types, Operator And Expression Logical Structure Types And Basic Instructions Preprocessor and Header File

1 ( 2 H)

2 ( 2 H)

3 ( 2 H)

4 Hours

4 (2H) 5 (2H)

2 Hours

2 Hours

6 (2H)

2 Hours

Writing Programmed in Programming C++ Introduction To Visual Basic Writing Programmed Using Visual Basic

7 (2H) 8 (2H) 10 (2H) 9 (2H)

2 Hours

4 Hours

2 Hours

UNIT 1 1.0 1.1

Basic Concept And Problem Solving in Programming Programming Basic Concept Definition of Programming

1.2

The components of programmed structure 1.2.1 1.2.2 Declaration Input

1.2.3. Storage 1.2.4. Operation 1.2.5. Control 1.2.6. Output 1.3 Identifying steps in programming 1.3.1. Definition and analyze 1.3.2. Planning user variables 1.3.3. Drawing Flowchart. 1.3.4. Program Writing 1.3.5. Testing and debugging the programmed 1.3.6. Documentation the programmed UNIT 2 2.0 2.1 Introduction To The Concept And Basic Instruction of Programming C++ Introduction to C++ Program. C++ Program Characteristics . 2.1.1 2.1.2 2.1.3 2.2. 2.2.1 2.2.2 2.2.3 UNIT 3 3.0 Comments Header Files Functions Console Output (cout) Console Input (cin). Format Codes (Backslash Character Constant).

Basic Input, Output and Format Code

Introduction To The Concept And Basic Instruction of Programming C++ Introduction The Technique To Develope C++ Programming . 3.0.1. Alogarithm 3.0.2 3.0.3 3.0.4 Flowcharts Pseudocode Structure chart.

3.1

Using Algorithm And Flowchart In Programming: 3.1.1 3.1.2. Algorithm Flowchart

UNIT 4 4.0 4.1

Data Types, Operator And Expression Introduction to data types, operator and expression in C++ Programming. Basic data types 4.1.1 4.1.2 4.1.2 Integer - Int Character - char Floating Point - float and double. Integer Constant Character and string Constant

4.2

Declaring the constant 4.2.1 4.2.2

4.3 4.4

Declaring Variables The Operators 4.4.1 4.4.2 4.4.3 Arithmetic Operators Relational Operators Logical Operators

4.5 UNIT 5 5.0 5.1

The Expression Logical Structures And Basic Instructions Introduction to logical structures Logical structures and basic instructions: 5.1.1 Sequence structure 5.1.2 Selection structure Simple If, If-Then-Else, Case 5.1.3 Repetition structure For, While, Whiledo

5.1 UNIT 6
6.0

Compiles and Runs Program Preprocessor and Header Files Introduction to pre-processor and header files Preprocessor statement. 6.1.1 #include

6.1

6.1.2 6.2 6.2.1 6.2.2 6.2.3 6.3.4 6.3.5 UNIT 7 7.0 7.1 Even Odd 7.2 7.3 7.4 UNIT 8 8.0 8.1 8.2 8.3

#define stdio.h ctype.h math.h conio.h iostream.h

Header file .h

Writing Programmed in Programming C++ Simple programming Grade Student List Bubble Sort

Introduction To Visual Basic Introduction To Visual Basic Visual Basic Enviroment Basic Project structure The User Interface 8.3.1 Toolbox, project and properties windows . 8.3.2 Design and modify the Toolbox object properties.

8.4 UNIT 9 9.0 9.1 9.2 9.3

Save and Run the project. Introduction To Visual Basic Introduction Procedure Events Create object an event procedure Using a simple Visual Basic statement 9.3.1 9.3.2 9.3.3 Declaration Sequence Selection

9.3.4 UNIT 10 10.0

Repetition

Writing Programmed Using Visual Basic


Simple

application programmed

MODULE GUIDELINES To achieve maximum benefits in using this module, students must follow the instructions carefully and complete all the activities. 1. 2. This module is divided into 10 units. Each page is numbered according to the subject code, unit and page number. B3062 / UNIT 1 / 5

Subject Unit 1 3.

Page Number 5

The general and specific objectives are given at the beginning of each unit.

4.

The activities in each unit are arranged in a sequential order and the following symbols are given:

OBJECTIVES The general and specific objectives for each learning topic are stated in this section.

INPUT This section introduces the subject matter that you are going to learn.

ACTIVITIES The activities in this section test your understanding of the subject matter. You have to complete this section by following the instructions carefully.

FEEDBACK Answers to the questions in the activity section are given here

SELF-ASSESSMENT Self-assessment evaluates your understanding of each unit.

FEEDBACK OF SELF-ASSESSMENT This section contains answers to the activities in the self-assessment. .

5. 6.

You have to follow the units in sequence. You may proceed to the next unit after successfully completing the unit and you are confident of your achievement.

GENERAL AIMS This module is prepared for students in the third semester who are following the Certificate/Diploma programmes in Malaysian Polytechnics. It aims to expose students to the Programming concept in each unit and to lead them towards selfdirected learning or with guidance from their lecturers.

PREREQUISITE SKILLS AND KNOWLEDGE The prerequisite for this module is at least the have to know how to used the computer.
GENERAL OBJECTIVES

At the end of this module, students should be able to: 1. Understand the concept of program characteristics and steps in Developing Program 2. know the characteristics and using instructions of C++ program basic language

3.

introduce techniques used in program design 4. introduce and use the data types, operator and expression in C++ programming. 5. understand the logical structure types and basic instruction refers to the order of execution of instructions in program. 6. understand the function of preprocessor directive and header file. 7. write C ++ program 8. understand the basic concept of Visual Basic 9. understand the basic concept of Visual Basic 10. develop a simple Visual Basic program 11. understanding basic structure of project. 12. construct user interface 13. writing the programmed using windows code 14. construct simple application programmed in Visual Basic.

TEACHING AIDS AND RESOURCES NEEDED 1. 2. 3. Overhead Projector (OHP) LCD Projector Computer

REFERENCES 1. 2.
3.

4. 6. 7. 8. 9.

William H. Murray III, Chris H. Pappas, Borland C++ - Depth, Osborne-Mc Graw Hill. Herbert Schildt, The Complete Reference Borland C++, Osborne Mc Graw Hill P. Sellapan, (1994).C++ Through Examples (Includes Object-Oriented Programming),Federal Publication Sdn. Bhd. M Thilla,(2002). C++ A Simplified Beginners Approach, Venton Publishing (M) Sdn. Bhd. Brian Siler and Jeff Sport(1998).Special Edition Using Visual Basic, QUE Corporation. Phil Feldman, Roger Jennings et al, Using Visual Basic, QUE Corporation David I. Schneider (1999). An Introduction To Programming Using Visual Basic 6.0- fourth edition. Practice Hall. Dr. P. Sellappan. (2000). Programming In Visual Basic 6- first edition. Sejana Publishing.

S-ar putea să vă placă și