SlideShare a Scribd company logo
Desk Checking
    Kelly
Bauer

Desk
checking,
given
all

             values

BEGIN
RandProg
             Go through the algorithm, and list
   A=3
                     as headings, all the components
   B=4
                     that change values in the
   C=5
                     algorithm.
   Counter=0

   Number=20

   WHILE
Number>
Counter

      A=A+1

      B=B+1

      C=C+B

      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm, and list
   A=3
                         as headings, all the components
   B=4
                         that change values in the
   C=5
                         algorithm.
   Counter=0

   Number=20
        A      B       C         Counte    Numbe        Print
   WHILE
Number>
Counter
                     r         r
      A=A+1

      B=B+1

      C=C+B

      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1

      B=B+1

      C=C+B

      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3
      B=B+1

      C=C+B

      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4
      B=B+1

      C=C+B

      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5
      B=B+1

      C=C+B

      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0
      B=B+1

      C=C+B

      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0         20
      B=B+1

      C=C+B

      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0         20
      B=B+1

      C=C+B
           4
      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0         20
      B=B+1

      C=C+B
           4    5
      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0         20
      B=B+1

      C=C+B
           4    5       10
      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0         20
      B=B+1

      C=C+B
           4    5       10                             10
      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0         20
      B=B+1

      C=C+B
           4    5       10       5                     10
      Print
C

      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 Go through the algorithm line by
   A=3
                         line and add the results of each
   B=4
                         line to the table.
   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe       Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0         20
      B=B+1

      C=C+B
           4    5       10       5                     10
      Print
C
         5
      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                   Go through the algorithm line by
   A=3
                           line and add the results of each
   B=4
                           line to the table.
   C=5

   Counter=0

   Number=20
             A   B          C        Counte    Numbe    Print
   WHILE
Number>
Counter
                         r         r
      A=A+1
              3   4          5        0         20
      B=B+1

      C=C+B
              4   5          10       5                  10
      Print
C
            5   6          16       9                  16
      Counter=
Counter+B

   ENDWHILE


END
RandProg

Desk
checking,
given
all

             values

BEGIN
RandProg
                 And so on until you have run
   A=3
                         through the entire program
   B=4

   C=5

   Counter=0

   Number=20
        A      B       C        Counte    Numbe   Print
   WHILE
Number>
Counter
                    r         r
      A=A+1
           3    4       5        0         20
      B=B+1

      C=C+B
           4    5       10       5                 10
      Print
C
         5    6       16       9                 16
      Counter=
Counter+B

                       6    7       23       32                23
   ENDWHILE


END
RandProg

Desk Checking
   Variable
values

BEGIN
                              So,
what
do
you
need

  Read
Number
1,
Read
               to
test?


  Number
2

  IF
Difference
<0
THEN
             CRITICAL
VALUES

       Print
“First
number
is

       lower”
                      Set
1:
Large
number,

  ELSE
                              small
number

       Print
“Second
Number
is

       lower”

                                    Set
2:
Small
number,

  END
IF

                                     large
Number

END

                                    Set
3:
Same
Numbers

Set
1:
Large
Number,

          Small
Number

BEGIN

  Read
Number
1,
Read

  Number
2

  IF
Difference
<0
THEN

       Print
“First
number
is

       lower”

  ELSE

       Print
“Second
Number
is

       lower”

  END
IF
                        Num1   Num2   Differenc   Output
                                               e
END

                                 3      1      2           Second
                                                           Number is
                                                           lower
Set
2:
Small
Number,

          Large
Number


BEGIN

  Read
Number
1,
Read

  Number
2

  IF
Difference
<0
THEN

       Print
“First
number
is

       lower”

  ELSE

       Print
“Second
Number
is

       lower”

  END
IF
                        Num1   Num2   Differenc   Output
                                               e
END

                                 1      2      -1          First
                                                           Number is
                                                           lower
Set
3:
Same
Numbers

BEGIN

  Read
Number
1,
Read

  Number
2

  IF
Difference
<0
THEN

       Print
“First
number
is

       lower”

  ELSE

       Print
“Second
Number
is

       lower”

  END
IF
                        Num1   Num2   Differenc   Output
                                               e
END

                                 3      3      0
Desk Chekcing Algorithms
Ad

More Related Content

Viewers also liked (10)

2008 Exam Questions Social And Ethical
2008 Exam Questions Social And Ethical2008 Exam Questions Social And Ethical
2008 Exam Questions Social And Ethical
Kelly Bauer
 
Psd - Programma Structuur Diagram
Psd - Programma Structuur DiagramPsd - Programma Structuur Diagram
Psd - Programma Structuur Diagram
iahpostmes
 
Nassi shneiderman diagrams
Nassi shneiderman diagramsNassi shneiderman diagrams
Nassi shneiderman diagrams
hccit
 
Meta Languages Railroad Diagrams
Meta Languages Railroad DiagramsMeta Languages Railroad Diagrams
Meta Languages Railroad Diagrams
Kelly Bauer
 
Meta Languages Bnf Ebnf Student Version
Meta Languages Bnf Ebnf Student VersionMeta Languages Bnf Ebnf Student Version
Meta Languages Bnf Ebnf Student Version
Kelly Bauer
 
Exam feedback term 1 2011
Exam feedback term 1 2011Exam feedback term 1 2011
Exam feedback term 1 2011
Kelly Bauer
 
Algorithms Vs Meta Language
Algorithms Vs Meta LanguageAlgorithms Vs Meta Language
Algorithms Vs Meta Language
Kelly Bauer
 
Searching algorithms
Searching algorithmsSearching algorithms
Searching algorithms
Trupti Agrawal
 
Data Structures - Lecture 8 [Sorting Algorithms]
Data Structures - Lecture 8 [Sorting Algorithms]Data Structures - Lecture 8 [Sorting Algorithms]
Data Structures - Lecture 8 [Sorting Algorithms]
Muhammad Hammad Waseem
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting Algorithms
Mohammed Hussein
 
2008 Exam Questions Social And Ethical
2008 Exam Questions Social And Ethical2008 Exam Questions Social And Ethical
2008 Exam Questions Social And Ethical
Kelly Bauer
 
Psd - Programma Structuur Diagram
Psd - Programma Structuur DiagramPsd - Programma Structuur Diagram
Psd - Programma Structuur Diagram
iahpostmes
 
Nassi shneiderman diagrams
Nassi shneiderman diagramsNassi shneiderman diagrams
Nassi shneiderman diagrams
hccit
 
Meta Languages Railroad Diagrams
Meta Languages Railroad DiagramsMeta Languages Railroad Diagrams
Meta Languages Railroad Diagrams
Kelly Bauer
 
Meta Languages Bnf Ebnf Student Version
Meta Languages Bnf Ebnf Student VersionMeta Languages Bnf Ebnf Student Version
Meta Languages Bnf Ebnf Student Version
Kelly Bauer
 
Exam feedback term 1 2011
Exam feedback term 1 2011Exam feedback term 1 2011
Exam feedback term 1 2011
Kelly Bauer
 
Algorithms Vs Meta Language
Algorithms Vs Meta LanguageAlgorithms Vs Meta Language
Algorithms Vs Meta Language
Kelly Bauer
 
Data Structures - Lecture 8 [Sorting Algorithms]
Data Structures - Lecture 8 [Sorting Algorithms]Data Structures - Lecture 8 [Sorting Algorithms]
Data Structures - Lecture 8 [Sorting Algorithms]
Muhammad Hammad Waseem
 

Similar to Desk Chekcing Algorithms (8)

C Programming
C ProgrammingC Programming
C Programming
Rumman Ansari
 
Pa1 wednesday flow_chart
Pa1 wednesday flow_chartPa1 wednesday flow_chart
Pa1 wednesday flow_chart
aiclub_slides
 
Chapter1 Introduction C Programming
Chapter1      Introduction C ProgrammingChapter1      Introduction C Programming
Chapter1 Introduction C Programming
11210208
 
Presentation__1on hdl languages imp.pptx
Presentation__1on hdl languages imp.pptxPresentation__1on hdl languages imp.pptx
Presentation__1on hdl languages imp.pptx
toshifalcon07
 
IS 151 Lecture 9
IS 151 Lecture 9IS 151 Lecture 9
IS 151 Lecture 9
wajanga
 
Lecture-5b - BCD Adder and Carry Propagation, Comparator (2).pptx
Lecture-5b - BCD Adder and Carry Propagation, Comparator (2).pptxLecture-5b - BCD Adder and Carry Propagation, Comparator (2).pptx
Lecture-5b - BCD Adder and Carry Propagation, Comparator (2).pptx
SamanArshad11
 
Pa1 flow chart
Pa1 flow chartPa1 flow chart
Pa1 flow chart
aiclub_slides
 
In c language programming flowchart.pptx
In c language programming flowchart.pptxIn c language programming flowchart.pptx
In c language programming flowchart.pptx
b221382
 
Pa1 wednesday flow_chart
Pa1 wednesday flow_chartPa1 wednesday flow_chart
Pa1 wednesday flow_chart
aiclub_slides
 
Chapter1 Introduction C Programming
Chapter1      Introduction C ProgrammingChapter1      Introduction C Programming
Chapter1 Introduction C Programming
11210208
 
Presentation__1on hdl languages imp.pptx
Presentation__1on hdl languages imp.pptxPresentation__1on hdl languages imp.pptx
Presentation__1on hdl languages imp.pptx
toshifalcon07
 
IS 151 Lecture 9
IS 151 Lecture 9IS 151 Lecture 9
IS 151 Lecture 9
wajanga
 
Lecture-5b - BCD Adder and Carry Propagation, Comparator (2).pptx
Lecture-5b - BCD Adder and Carry Propagation, Comparator (2).pptxLecture-5b - BCD Adder and Carry Propagation, Comparator (2).pptx
Lecture-5b - BCD Adder and Carry Propagation, Comparator (2).pptx
SamanArshad11
 
In c language programming flowchart.pptx
In c language programming flowchart.pptxIn c language programming flowchart.pptx
In c language programming flowchart.pptx
b221382
 
Ad

More from Kelly Bauer (20)

Logo design
Logo designLogo design
Logo design
Kelly Bauer
 
Team teaching
Team teachingTeam teaching
Team teaching
Kelly Bauer
 
Cmyk vs rgb
Cmyk vs rgbCmyk vs rgb
Cmyk vs rgb
Kelly Bauer
 
Structural factors
Structural factorsStructural factors
Structural factors
Kelly Bauer
 
Scaffolding activities
Scaffolding activitiesScaffolding activities
Scaffolding activities
Kelly Bauer
 
Team teaching
Team teachingTeam teaching
Team teaching
Kelly Bauer
 
Entry document
Entry documentEntry document
Entry document
Kelly Bauer
 
Project showcase
Project showcaseProject showcase
Project showcase
Kelly Bauer
 
Project showcase church in the middle ages
Project showcase church in the middle agesProject showcase church in the middle ages
Project showcase church in the middle ages
Kelly Bauer
 
Selection and justification
Selection and justificationSelection and justification
Selection and justification
Kelly Bauer
 
6 multimedia elements - www
6   multimedia elements - www6   multimedia elements - www
6 multimedia elements - www
Kelly Bauer
 
3 multimedia elements - audio
3   multimedia elements - audio3   multimedia elements - audio
3 multimedia elements - audio
Kelly Bauer
 
OHS for Industrial Technology
OHS for Industrial TechnologyOHS for Industrial Technology
OHS for Industrial Technology
Kelly Bauer
 
Images (Samples from past exams
Images (Samples from past examsImages (Samples from past exams
Images (Samples from past exams
Kelly Bauer
 
Personell issues
Personell issuesPersonell issues
Personell issues
Kelly Bauer
 
Differentiation
DifferentiationDifferentiation
Differentiation
Kelly Bauer
 
Exam feedback term 1 2011
Exam feedback term 1 2011Exam feedback term 1 2011
Exam feedback term 1 2011
Kelly Bauer
 
5 multimedia elements - animation
5   multimedia elements - animation5   multimedia elements - animation
5 multimedia elements - animation
Kelly Bauer
 
4 multimedia elements - video
4   multimedia elements - video4   multimedia elements - video
4 multimedia elements - video
Kelly Bauer
 
Stem 71 24 multimedia elements - graphics
Stem 71 24   multimedia elements - graphicsStem 71 24   multimedia elements - graphics
Stem 71 24 multimedia elements - graphics
Kelly Bauer
 
Structural factors
Structural factorsStructural factors
Structural factors
Kelly Bauer
 
Scaffolding activities
Scaffolding activitiesScaffolding activities
Scaffolding activities
Kelly Bauer
 
Project showcase
Project showcaseProject showcase
Project showcase
Kelly Bauer
 
Project showcase church in the middle ages
Project showcase church in the middle agesProject showcase church in the middle ages
Project showcase church in the middle ages
Kelly Bauer
 
Selection and justification
Selection and justificationSelection and justification
Selection and justification
Kelly Bauer
 
6 multimedia elements - www
6   multimedia elements - www6   multimedia elements - www
6 multimedia elements - www
Kelly Bauer
 
3 multimedia elements - audio
3   multimedia elements - audio3   multimedia elements - audio
3 multimedia elements - audio
Kelly Bauer
 
OHS for Industrial Technology
OHS for Industrial TechnologyOHS for Industrial Technology
OHS for Industrial Technology
Kelly Bauer
 
Images (Samples from past exams
Images (Samples from past examsImages (Samples from past exams
Images (Samples from past exams
Kelly Bauer
 
Personell issues
Personell issuesPersonell issues
Personell issues
Kelly Bauer
 
Exam feedback term 1 2011
Exam feedback term 1 2011Exam feedback term 1 2011
Exam feedback term 1 2011
Kelly Bauer
 
5 multimedia elements - animation
5   multimedia elements - animation5   multimedia elements - animation
5 multimedia elements - animation
Kelly Bauer
 
4 multimedia elements - video
4   multimedia elements - video4   multimedia elements - video
4 multimedia elements - video
Kelly Bauer
 
Stem 71 24 multimedia elements - graphics
Stem 71 24   multimedia elements - graphicsStem 71 24   multimedia elements - graphics
Stem 71 24 multimedia elements - graphics
Kelly Bauer
 
Ad

Recently uploaded (20)

How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18
Celine George
 
Pope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptxPope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptx
Martin M Flynn
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
Cultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptxCultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptx
UmeshTimilsina1
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)
jemille6
 
The History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptxThe History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales moduleHow To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
Celine George
 
*"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"**"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"*
Arshad Shaikh
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)
Mohamed Rizk Khodair
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18How to Configure Public Holidays & Mandatory Days in Odoo 18
How to Configure Public Holidays & Mandatory Days in Odoo 18
Celine George
 
Pope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptxPope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptx
Martin M Flynn
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
Cultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptxCultivation Practice of Turmeric in Nepal.pptx
Cultivation Practice of Turmeric in Nepal.pptx
UmeshTimilsina1
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
Origin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theoriesOrigin of Brahmi script: A breaking down of various theories
Origin of Brahmi script: A breaking down of various theories
PrachiSontakke5
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)
jemille6
 
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales moduleHow To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
Celine George
 
*"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"**"Sensing the World: Insect Sensory Systems"*
*"Sensing the World: Insect Sensory Systems"*
Arshad Shaikh
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)
Mohamed Rizk Khodair
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 

Desk Chekcing Algorithms

  • 1. Desk Checking Kelly
Bauer

  • 2. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm, and list A=3
 as headings, all the components B=4
 that change values in the C=5
 algorithm. Counter=0
 Number=20
 WHILE
Number>
Counter
 A=A+1
 B=B+1
 C=C+B
 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 3. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm, and list A=3
 as headings, all the components B=4
 that change values in the C=5
 algorithm. Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 B=B+1
 C=C+B
 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 4. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 B=B+1
 C=C+B
 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 5. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 B=B+1
 C=C+B
 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 6. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 B=B+1
 C=C+B
 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 7. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 B=B+1
 C=C+B
 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 8. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 B=B+1
 C=C+B
 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 9. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 10. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 4 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 11. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 4 5 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 12. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 4 5 10 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 13. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 4 5 10 10 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 14. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 4 5 10 5 10 Print
C
 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 15. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 4 5 10 5 10 Print
C
 5 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 16. Desk
checking,
given
all
 values
 BEGIN
RandProg
 Go through the algorithm line by A=3
 line and add the results of each B=4
 line to the table. C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 4 5 10 5 10 Print
C
 5 6 16 9 16 Counter=
Counter+B
 ENDWHILE
 END
RandProg

  • 17. Desk
checking,
given
all
 values
 BEGIN
RandProg
 And so on until you have run A=3
 through the entire program B=4
 C=5
 Counter=0
 Number=20
 A B C Counte Numbe Print WHILE
Number>
Counter
 r r A=A+1
 3 4 5 0 20 B=B+1
 C=C+B
 4 5 10 5 10 Print
C
 5 6 16 9 16 Counter=
Counter+B
 6 7 23 32 23 ENDWHILE
 END
RandProg

  • 18. Desk Checking Variable
values

  • 19. BEGIN
   So,
what
do
you
need
 Read
Number
1,
Read
 to
test?

 Number
2
 IF
Difference
<0
THEN
   CRITICAL
VALUES
 Print
“First
number
is
 lower”
   Set
1:
Large
number,
 ELSE
 small
number
 Print
“Second
Number
is
 lower”
   Set
2:
Small
number,
 END
IF
 large
Number
 END
   Set
3:
Same
Numbers

  • 20. Set
1:
Large
Number,
 Small
Number
 BEGIN
 Read
Number
1,
Read
 Number
2
 IF
Difference
<0
THEN
 Print
“First
number
is
 lower”
 ELSE
 Print
“Second
Number
is
 lower”
 END
IF
 Num1 Num2 Differenc Output e END
 3 1 2 Second Number is lower
  • 21. Set
2:
Small
Number,
 Large
Number

 BEGIN
 Read
Number
1,
Read
 Number
2
 IF
Difference
<0
THEN
 Print
“First
number
is
 lower”
 ELSE
 Print
“Second
Number
is
 lower”
 END
IF
 Num1 Num2 Differenc Output e END
 1 2 -1 First Number is lower
  • 22. Set
3:
Same
Numbers
 BEGIN
 Read
Number
1,
Read
 Number
2
 IF
Difference
<0
THEN
 Print
“First
number
is
 lower”
 ELSE
 Print
“Second
Number
is
 lower”
 END
IF
 Num1 Num2 Differenc Output e END
 3 3 0
  翻译: