Académique Documents
Professionnel Documents
Culture Documents
NIIT
The o"&ecti$e of this module is to familiari'e the students ith the "asic constructs and techniques used in sol$ing pro"lems. Since the entry profile does not e(pect the student to ha$e any e(posure to programming the module starts from the $ery "asics of flo charting and ta%es the student gradually through higher le$els of pro"lem sol$ing through flo charts.
+amiliar ith the $arious parts of the computer and should %no the "asic difference "et een hard are and soft are. )"le to interact in ,nglish in a classroom en$ironment "ecause the classes ill "e conducted in ,nglish. The course are ill also "e in ,nglish. The sessions ill "e interacti$e in nature.
NIIT
.omforta"le or%ing in the /indo s en$ironment. 0no ledge of 1S #ffice ould "e an added ad$antage.
)t the end of this module! the students ill "e a"le to*
Sym"ols used in flo charting Sequencing the tas%s to "e carried out 2ecision ma%ing using flo charts Iteration using flo charts Identification of 3aria"les and constants 2ata types #rgani'ing and carrying out .onditional e(ecution Iteration Implementing procedures .oncept of a dry run
)s faculty you might find the contents of this module are light and may feel the need for greater depth of co$erage. Please remem"er that this is the first e(posure to programming for most students and e must concentrate on ensuring the follo ing*
They are $ery confident of analy'ing pro"lems and de$eloping solutions using the constructs learned They find it a $ery en&oya"le and enriching e(perience
NIIT
module
They ha$e had a taste of 5programming6! and loo% for ard to more of it in the ##Ps
7emem"er! once they start en&oying dra ing flo charts and learning the logic of programs they ill "e sufficiently moti$ated to put in more effort to learn more in the further modules. Therefore! if you get them hoo%ed right here! you ha$e on half your "attle. 1a%e sure that you do not go o$er"oard in gi$ing inputs. Let them apply logic from their e$eryday e(perience. Pre$ent yourself from lapsing "ac% into the topic8centered approach. +ocus on tas%s! and the %no ledge required for accomplishing those tas%s.
Lesson One
Experiences
2uring the )nalysis phase of course are de$elopment! e conducted se$eral inter$ie s ith pro&ect managers in the soft are industry. They told us that they found programming logic and s%ills lac%ing in many of the ne recruits. They suggested that this module needs to "e gi$en a lot of emphasis. People anted to %no hy are e teaching flo charts. 1any people are under the impression that flo charts are not used in the soft are industry. 9ut the fact re$ealed during our analysis confirmed that flo charts are used e(tensi$ely in soft are de$elopment.
FA
NIIT
: 1. )re flo charts actually used "y soft are de$elopers? ) 1. ;es! they are. ) flo chart is a graphic tool! it is easier to communicate the logic using a flo chart. : -. /hat is the con$ention used for the flo lines in a flo chart? ) -. @enerally! the lines flo from top to "ottom and left to right.
Additional !nputs
)s the programming logic is introduced for the first time! spend time on e(plaining the sym"ols used in a flo chart. /hen flo chart and its $arious sym"ols are introduced! discuss the $arious %ey ords associated ith the input! process! and output. +or e(ample! get! accept! and input can "e used for input of data.
1.
-.
4.
>.
NIIT
A.
"olution#
1. -. 4. >. A. If )dd! 1ultiply! Su"tract! 2i$ide @et! 7ead! Input Stop! Start /rite! 2isplay! #utput
&'P'&
Procedure of Admission in NIIT
&'P'(
The correct steps are*
NIIT
1. -. 4. >. A. B.
Start @et the +irst Num"er @et the Second Num"er )dd the T o Num"ers 2isplay the 7esult Stop
NIIT
&'P')
Display the Sum of Five Numbers
NIIT
&'P'*
Display the Product of 2 and a Specified Number
NIIT
Lesson Two
Experiences
/hile introducing relational operators! you need not introduce all the relational operators. #nly introduce those that are required for the e(ample gi$en. Since you already %no programming languages! you might ha$e a perception that the character datatype can store only one character. <o e$er as far as the PLT module is concerned! a $aria"le of character datatype can store one or more characters. The student may ha$e difficulty in using the naming con$ention. The con$ention that is used is the hungarian notation. ;ou may need to enforce it as it is one of the "est practices follo ed "y soft are de$elopers. ;ou may need to e(plain the difference "et een datatypes and hen to use hich datatype. Since the flo chart is a graphic tool! it is easier to communicate and document the logic! using flo charts.
Additional !nputs
The faculty should e(plain the purpose of connectors gi$en in the slides. These are not used in the student guide! as the flo chart comes in one page itself.
FA
: 1. /hat do dotted lines in a flo chart indicate? ) 1. 2otted lines indicate that the flo chart is not complete "ut is a flo chart segment that has only the rele$ant steps depicted.
"olution#
3aria"le* Num"er of letters .onstant* .arrying charge FA
NIIT
$ust a Minute%
Identify the $aria"les and constants from the list gi$en "elo * a) )ge
") )ddress c) -1
g) H1DAI
"olution#
.onstants* -1! H1G! 0ings ay .ampI! H<enriI! H1DAI 3aria"les* )ge! )ddress! Name.
$ust a Minute%
2ra a flo chart to accept item name! price! and quantity. ;ou need to calculate $alue as the product of price and quantity! and display the calculated $alue and the item name using $aria"les.
NIIT
"olution#
Display the alue of an Item
('P'&
a) #0
('P'(
a) @##2 ill "e printed! since nKLn; and nKL1GG.
") Nothing ill "e printed (e$en though nK is greater than n;! it is still less than 1GG). c) Nothing ill "e printed (e$en though n; is greater than nK! it is still less than 1GG).
NIIT
('P')
Find !ut if a Number is Divisible by "
NIIT
('P'*
Display the #ar$est of the Three Numbers
NIIT
('P'+
%hec& if the A$e is Ne$ative
NIIT
F A,-LT. O/"E01AT!O2"
NIIT
Lesson Three
Experiences
;ou may need to spend time on e(plaining iteration as some students may find it difficult to grasp. ;ou may need to spend time on e(plaining the concept of modules or procedures. ;ou ill also need to e(plain to the students the use of the sym"ol used for depicting procedures in flo charts! since this is the first time they ill "e using this sym"ol.
Additional !nputs
)fter the completion of an e(ample! you should ta%e the test case $alues and do a step "y step dry run! so that the students are familiar ith the dry run process and are clear on ho to chec% the flo of control.
NIIT
"olutions#
)'P'&
Display the Product of Ten 'ven Numbers
NIIT
)'P'(
%ount the Number of !dd and 'ven Numbers
NIIT
)'P')
Display the (i$hest of any Ten Numbers
NIIT
)'P'*
)odular Pro$rammin$
NIIT
)'P'+
The names ill "e displayed infinite num"er of times! as the $alue of n.ounter does not change. The $alue of n.ounter ill remain G and the condition ill ne$er "ecome false. So the loop ill ne$er terminate. This is an infinite loop.
NIIT
FA,-LT. O/"E01AT!O2"
NIIT
O/"E01AT!O2"
Lesson One
"olutions#
&'
Display Name and A$e
('
Display the Product of Two Numbers
NIIT
NIIT
Lesson Two
"olutions#
&'
%hec& if First Number is Divisible by the Second
NIIT
('
Display the Day of the *ee&
NIIT
)'
%alculate the Area
*'
%onvert the Temperature from Fahrenheit to %elsius
NIIT
+'
Display the #owest of the Three Numbers
NIIT
Lesson Three
"olutions#
&'
Display the Avera$e of First Ten !dd Numbers
NIIT
('
Display the Square of the First +,, Natural Numbers
NIIT
)'
Display Fibonacci Series
NIIT
*'
Display Total Number of %alls
NIIT
+'
%alculate the Net Price of a -oo&
NIIT
NIIT
3'
Display the Status of the Stores Department
NIIT
4'
Display the Sale Price
NIIT
5'
%alculate the Avera$e )ar&s of Students
NIIT
Activity/Problem No.
Lesson 1: Objectives Input, Process, and Output Programs Problem-Solving Techni ues 1"P"1 1"P"$ 1"P"! 1"P"% Summar& otal Cycle# OCR1 Lesson $: Objectives 'ariables and (onstants )ata T&pes *sing Operators +epresenting )ecisions in a ,lo-chart $"P"1 $"P"$ $"P"! $"P"% $"P"5 Summar& otal Cycle$ OCR1 Lesson !: Objectives )r& +un Iteration .odular /pproach to Programming !"P"1 !"P"$ !"P"! !"P"% !"P"5 Summar& otal
5 5 5 !5 1# 5 5 5 5 !"
5 15 5 15 !5 5 5 1# 1# 1# 5 1#"
5 $# $5 $# 1# 1# 1# 1# 5 5 1#"
NIIT