4th

1 downloads 0 Views 2MB Size Report
Write a C++ program illustrating Swapping integer values by reference. Algorithm: ... Write a c++ program illustrating to sort integer numbers. ..... typedef struct {.
Laboratory Manual of Smart Systems Modelling/4th Stage-Electronic

AL-KITAB UNIVERSITY COLLEGE Department of Computer Techncal Engineering/ Electronic Computer- Forth Stage

Laboratory Manual of Smart Systems Modelling Prepared By Prof. Dr. Ayad Ghany Ismaeel

2016-2017 Al-Kitab University College (Prof. Ayad Ghany Ismaeel)

Page 1

Laboratory Manual of Smart Systems Modelling/4th Stage-Electronic

SMART SYSTEMS MODELLINGLABORATORY OBJECTIVES: The student should be made to:  Be exposed to the Smart Systems and their Modelling.  Learn to implement the algorithms of Smart Systems Modelling.  Learn to use and apply the Smart Systems Modelling algorithms. LIST OF EXPERIMENTS: 1. Review of Instructions, Staments, Tools and Functions of C/C++ Programming Languages:       

VARIABLE SCOPE, SWAPPING INTEGERS BY REFERENCE, CHECKING THE NUMBER EVEN OR ODD USING TERNARY OPERATOR, SORTING INTEGER NUMBERS, FACTORIAL USING RECURSION, FUNCTION OVERLOADING and INLINE FUNCTION

2. Implement the following Smart Systems and Modelling algorithms: o

A SIMPLE NEURON NETWORK

o

SINGLE PERCEPTRON LAYER NEURAL NETWORK

o APPLIED OF AND LOGIC NN o MCCULLOCH-PITTS: APPLIED OF (ANDNOT) o MCCULLOCH-PITTS: CASE STUDY (XOR) o ADALINE NEURAL NETWORK o DELTA RULE NET. o HEBB RULE NET. o BACKPROPAGATION NN ALGORITHM o SIMPLE GENETIC ALGORITHM PERIODS OUTCOMES: At the end of the course, the student should be able to: o Define the Neural Networks NNs and their types. o Define the algorithms used in Smart Systems Modelling. o Implement the NNs techniques. o Applied the Training and Test/Used the NNs in Smart Systems Modelling. o Develop the various Smart Systems Modelling algorithms. o Use different OOP and open source tools (C++/C tutorials) for Smart Systems and their Modelling. LIST OF EQUIPMENT FOR A BATCH OF 30 STUDENTS: Al-Kitab University College (Prof. Ayad Ghany Ismaeel)

Page 2

Laboratory Manual of Smart Systems Modelling/4th Stage-Electronic

SOFTWARE: C / C++ or equivalent compiler like DEV C++. HARDWARE: Standalone desktops/Labtops 30 Nos. .

Al-Kitab University College (Prof. Ayad Ghany Ismaeel)

Page 3

Laboratory Manual of Smart Systems Modelling/4th Stage-Electronic

INDEX S.NO EXPERIMENT NAME

Page No.

1

1(a) VARIABLE SCOPE, 1(b) SWAPPING INTEGERS BY REFERENCE and 1(c) CHECKING THE NUMBER EVEN OR ODD USING TERNARY OPERATOR

5-8

2

2(a) SORTING INTEGER NUMBERS and 2(b) FACTORIAL USING RECURSION,2(c) FUNCTION OVERLOADING and 2(d) INLINE FUNCTION

9-13

3

A SIMPLE NEURON NETWORK

14

4

SINGLE PERCEPTRON LAYER NEURAL NETWORK

16

5

APPLIED OF AND LOGIC NN

18

6

MCCULLOCH-PITTS: APPLIED OF (ANDNOT)

20

7

MCCULLOCH-PITTS: CASE STUDY (XOR)

22

8

ADALINE NEURAL NETWORK

25

9

DELTA RULE NET.

33

10 HEBB RULE NET

32

11 BACKPROPAGATION NN ALGORITHM

37

12 SIMPLE GENETIC ALGORITHM

45

Note: Each Experiment Lasts two/three weeks

Al-Kitab University College (Prof. Ayad Ghany Ismaeel)

Page 4

Laboratory Manual of Smart Systems Modelling/4th Stage-Electronic

EX.No:1(a)

VARIABLE SCOPE

Aim: Write a c++ program illustrating variable scope. Algorithm: Step1: Use global variable as glo is 10 Step2: Use local variables as lo=20 , glo=40 Step3: Print valus of variables lo, glo (local variable) Step4: Print value of glo (global variable) Step5: stop Program: #include using namespace std; int glo=10; main() { int lo=20,glo=40; cout