01 iec t1_s1_plt_session_01

20
Installing Windows XP Professional Using Attended Installation Slide 1 of 20 Session 1 Ver. 1.0 Programming Logic and Techniques The Programming Logic and Techniques (PLT) module is positioned as the entry point into this curriculum. Since this curriculum is designed to cater to aspiring software professionals, a strong foundation in programming approaches and application of logic was found essential and was recommended by the industry. In the OOPs using C# module the students will be required to write programs involving the use of programming constructs. The PLT module, apart from teaching problem solving technique like flowcharting, will also prepare the students for the OOPs using C# module by developing the student’s ability to study, solve and represent the logic of the problems. Rationale

Upload: niit-care

Post on 19-Jun-2015

1.208 views

Category:

Technology


3 download

DESCRIPTION

NEW Slides

TRANSCRIPT

Page 1: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 1 of 20Session 1Ver. 1.0

Programming Logic and Techniques

The Programming Logic and Techniques (PLT) module is positioned as the entry point into this curriculum. Since this curriculum is designed to cater to aspiring software professionals, a strong foundation in programming approaches and application of logic was found essential and was recommended by the industry.

In the OOPs using C# module the students will be required to write programs involving the use of programming constructs. The PLT module, apart from teaching problem solving technique like flowcharting, will also prepare the students for the OOPs using C# module by developing the student’s ability to study, solve and represent the logic of the problems.

Rationale

Page 2: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 2 of 20Session 1Ver. 1.0

Programming Logic and Techniques

In this session, you will learn to:Identify input, process, and output

Describe programs

Problem-solving techniques

Objectives

Page 3: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 3 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Activities can be broken into separate phases: The first phase is called the input phase.

The second phase is called the process phase.

The last phase is called the output phase.

Phases

Page 4: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 4 of 20Session 1Ver. 1.0

Programming Logic and Techniques

The cycle of activities performed by a computer is referred to as the Input-Process-Output cycle or the I-P-O cycle.

A computer consists of several components.

Each component participates in either one of the input, process, or output phases.

Input-Process-Output Cycle

Page 5: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 5 of 20Session 1Ver. 1.0

Programming Logic and Techniques

A computer is designed to accept input, process it, and generate output.

A set of instructions to perform a task is called a program.

A number of programs together form an application.

Programs

Page 6: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 6 of 20Session 1Ver. 1.0

Programming Logic and Techniques

A flowchart is a graphical representation of the steps to be followed for solving a problem.

It consists of a set of symbols.

Each symbol represents a specific activity.

Flowcharts

Page 7: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 7 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Symbols Used in Flowcharts

Symbol Activity

Input

Processing

Output

Decision

Subroutine

Page 8: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 8 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Symbols Used in Flowcharts (Contd.)

Symbol Activity

Flow lines

Terminator

On page connector

Off page connector

Annotation

Page 9: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 9 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Just a minute

Match the following verbs with appropriate symbols.Get, Write, Stop, Add, Start, Multiply, Read, Subtract, Divide, Display, Input, Output, If

S. No. Symbol Activity

1.  

2.  

3.  

4.  

5.  

Page 10: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 10 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Answer:1. If

2. Add, Multiply, Subtract, Divide

3. Get, Read, Input

4. Start, Stop

5. Write, Display, Output

Just a minute (Contd.)

Page 11: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 11 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Example:Flowchart for preparing tea

Drawing Simple Flowcharts

Start

Stop

The Steps for Preparing tea

Input Water, Sugar, Tea Leaves, and Milk

Boil the Ingredients

Tea is Prepared

Page 12: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 12 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Example:Flowchart for manipulating numbers

Drawing Simple Flowcharts (Contd.)

Start

Stop

Get a Number

Add 1 to the Number

Display the Number

Page 13: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 13 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Example:The value of sale made is calculated as the number of units sold multiplied by the price per unit. Draw a flowchart to calculate and print the sale value.

Drawing Simple Flowcharts (Contd.)

Page 14: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 14 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Drawing Simple Flowcharts (Contd.)

Start

Stop

Input Unit Price

Multiply Units Sold By Unit Price

Print Total Sale Value

Input Units Sold

Example (Contd.):

Page 15: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 15 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Exercises

Page 16: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 16 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Draw a flowchart to represent the procedure of admission of a student to NIIT.

Exercise 1

Page 17: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 17 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Rearrange the following steps in the order of correct sequence to add two numbers and draw a flowchart for the same:1. Get the First Number

2. Display the Result

3. Stop

4. Add the Two Numbers

5. Get the Second Number

6. Start

Exercise 2

Page 18: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 18 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Draw a flowchart to accept five numbers and display the sum of the numbers.

Exercise 3

Page 19: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 19 of 20Session 1Ver. 1.0

Programming Logic and Techniques

Draw a flowchart to input any number, multiply it by 2, and display the result.

Exercise 4

Page 20: 01 iec t1_s1_plt_session_01

Installing Windows XP Professional Using Attended Installation

Slide 20 of 20Session 1Ver. 1.0

Programming Logic and Techniques

In this session, you learned that: The cycle of activities performed by a computer follows the Input-Process-Output cycle.

A set of instructions to perform a particular job is called aprogram.

A flowchart is a graphical representation of the steps to be followed for solving a problem.

A flowchart consists of a set of symbols, where each symbol represents a specific activity.

Summary