You are on page 1of 20

Programming

Installing WindowsLogic and Techniques


XP Professional Using Attended Installation

Rationale

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.

Ver. 1.0 Session 1 Slide 1 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Objectives

In this session, you will learn to:


Identify input, process, and output
Describe programs
Problem-solving techniques

Ver. 1.0 Session 1 Slide 2 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Phases

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.

Ver. 1.0 Session 1 Slide 3 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Input-Process-Output Cycle

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.

Ver. 1.0 Session 1 Slide 4 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Programs

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.

Ver. 1.0 Session 1 Slide 5 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Flowcharts

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.

Ver. 1.0 Session 1 Slide 6 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Symbols Used in Flowcharts

Symbol Activity

Input

Processing

Output

Decision

Subroutine

Ver. 1.0 Session 1 Slide 7 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Symbols Used in Flowcharts (Contd.)

Symbol Activity

Flow lines

Terminator

On page connector

Off page connector

Annotation

Ver. 1.0 Session 1 Slide 8 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

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.  

Ver. 1.0 Session 1 Slide 9 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Just a minute (Contd.)

Answer:
1. If
2. Add, Multiply, Subtract, Divide
3. Get, Read, Input
4. Start, Stop
5. Write, Display, Output

Ver. 1.0 Session 1 Slide 10 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Drawing Simple Flowcharts

Example:
Flowchart for preparing tea Start

The Steps for Preparing tea

Input Water, Sugar,


Tea Leaves, and Milk

Boil the Ingredients

Tea is Prepared

Stop

Ver. 1.0 Session 1 Slide 11 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Drawing Simple Flowcharts (Contd.)

Example:
Flowchart for manipulating numbers

Start

Get a Number

Add 1 to the Number

Display the Number

Stop

Ver. 1.0 Session 1 Slide 12 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Drawing Simple Flowcharts (Contd.)

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.

Ver. 1.0 Session 1 Slide 13 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Drawing Simple Flowcharts (Contd.)

Example (Contd.):
Start

Input Units Sold

Input Unit Price

Multiply Units Sold


By Unit Price

Print Total Sale


Value

Stop

Ver. 1.0 Session 1 Slide 14 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Exercises

Ver. 1.0 Session 1 Slide 15 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Exercise 1

Draw a flowchart to represent the procedure of admission of


a student to NIIT.

Ver. 1.0 Session 1 Slide 16 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Exercise 2

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

Ver. 1.0 Session 1 Slide 17 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Exercise 3

Draw a flowchart to accept five numbers and display the


sum of the numbers.

Ver. 1.0 Session 1 Slide 18 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Exercise 4

Draw a flowchart to input any number, multiply it by 2, and


display the result.

Ver. 1.0 Session 1 Slide 19 of 20


Programming
Installing WindowsLogic and Techniques
XP Professional Using Attended Installation

Summary

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 a
program.
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.

Ver. 1.0 Session 1 Slide 20 of 20

You might also like