01 iec t1_s1_plt_session_01
DESCRIPTION
NEW SlidesTRANSCRIPT
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
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
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
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
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
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
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
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
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.
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.)
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
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
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.)
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.):
Installing Windows XP Professional Using Attended Installation
Slide 15 of 20Session 1Ver. 1.0
Programming Logic and Techniques
Exercises
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
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
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
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
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