Upload
christopher-olaya
View
217
Download
0
Embed Size (px)
DESCRIPTION
program logic
Citation preview
7/18/2019 Lesson 2.1 - Program Logic
http://slidepdf.com/reader/full/lesson-21-program-logic-5696e6e35dcc0 1/8
7/18/2019 Lesson 2.1 - Program Logic
http://slidepdf.com/reader/full/lesson-21-program-logic-5696e6e35dcc0 2/8
Program Logic Flow
Notations- The use of ordinary Englishis often to verbose r specifyingoperations or naming data withinowcharting operations. Notationsare used since they summarizedwithin owcharting symbols greater
amounts of information than ordinaryEnglish, thus improving theowcharts communication value.
7/18/2019 Lesson 2.1 - Program Logic
http://slidepdf.com/reader/full/lesson-21-program-logic-5696e6e35dcc0 3/8
Notation Symbols
MathematicalNOTATION
MEANING LogicalNOTATION
MEANING
!
-"#$ %""&
'ddition
(ubtraction)ultiplication*ivision+roupingEponentationomparison
/0101 2
N
E3ual to
Not E3ual to+reater Than4ess Than+reater Than orE3ual4ess Than or E3ual
2esNo
7/18/2019 Lesson 2.1 - Program Logic
http://slidepdf.com/reader/full/lesson-21-program-logic-5696e6e35dcc0 4/8
Sample Logic Problem
*raw a owchart that will display5'ccess +ranted6 if the passwordentered is e3ual to 5omputer6 elsewill display 5'ccess *enied6.
7/18/2019 Lesson 2.1 - Program Logic
http://slidepdf.com/reader/full/lesson-21-program-logic-5696e6e35dcc0 5/8
Sample Logic Problem
*raw a owchart that will display thehigher number between two enteredintegers.
7/18/2019 Lesson 2.1 - Program Logic
http://slidepdf.com/reader/full/lesson-21-program-logic-5696e6e35dcc0 6/8
Sample Logic Problem
*raw a owchart that will display thehigher number between two enteredintegers.
7/18/2019 Lesson 2.1 - Program Logic
http://slidepdf.com/reader/full/lesson-21-program-logic-5696e6e35dcc0 7/8
Sample Logic Problem
This owchart will assist teachers in calculatingstudent grades at the end of the semester. 7taccepts numerical grade input, then it willdisplay the descriptive grade as output. 8sedthe following range&
9ange *escriptive :utput
;<-=<< 'dvanced
><->; ?rocient
@<-@; 'pproaching ?rociency A<-A; *eveloping
B<-B; Ceginner