0% found this document useful (0 votes)
29 views20 pages

Clearly Visual Basic: Programming With Visual Basic 2008: First You Need To Plan The Party

This chapter discusses the first steps in solving programming problems: analyzing the problem to identify the input and output, planning the algorithm using pseudocode and flowcharts, and desk-checking the algorithm. Programmers use tools like pseudocode and flowcharts to design algorithms that take input, process it, and provide the desired output. The key steps are to analyze what information is needed and results expected, design the processing instructions, and review the algorithm design before implementation.

Uploaded by

DarkSilent
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views20 pages

Clearly Visual Basic: Programming With Visual Basic 2008: First You Need To Plan The Party

This chapter discusses the first steps in solving programming problems: analyzing the problem to identify the input and output, planning the algorithm using pseudocode and flowcharts, and desk-checking the algorithm. Programmers use tools like pseudocode and flowcharts to design algorithms that take input, process it, and provide the desired output. The key steps are to analyze what information is needed and results expected, design the processing instructions, and review the algorithm design before implementation.

Uploaded by

DarkSilent
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 20

Clearly Visual Basic: Programming

with Visual Basic 2008

Chapter 3
First You Need to Plan the Party
Objectives
• Identify the output and input in a problem description
• Plan an algorithm using pseudocode and flowcharts
• Desk-check an algorithm

Clearly Visual Basic: Programming with Visual Basic 2008 2


How Do Programmers Solve
Problems?
• You cannot solve a problem unless you understand
it
• You cannot understand a problem unless you
analyze it
• Most important components of any problem are the
problem’s output and its input

Clearly Visual Basic: Programming with Visual Basic 2008 3


Clearly Visual Basic: Programming with Visual Basic 2008 4
Step 1 – Analyze the Problem
• Identify output
– What does the user want to see printed on paper,
displayed on the screen, or stored in a file?
• Identify input
– What information will the computer need to know to
print, display, or store the output items?
• Analysis step is most difficult problem-solving step

Clearly Visual Basic: Programming with Visual Basic 2008 5


Clearly Visual Basic: Programming with Visual Basic 2008 6
Clearly Visual Basic: Programming with Visual Basic 2008 7
Clearly Visual Basic: Programming with Visual Basic 2008 8
Step 2 – Plan the Algorithm
• Pseudocode
– False code, not standardized
– Cannot be understood by a computer
– Used by programmers when planning an algorithm
• Flowchart
– Uses standardized symbols to visually depict an
algorithm

Clearly Visual Basic: Programming with Visual Basic 2008 9


Clearly Visual Basic: Programming with Visual Basic 2008 10
Step 2 – Plan the Algorithm
(continued)
• Flowchart symbols
– Oval: start/stop symbol
– Parallelogram: input/output symbol
– Rectangle: process symbol
• Flowlines
– Connect symbols
• Processing item: intermediate value that algorithm
uses when processing input into output

Clearly Visual Basic: Programming with Visual Basic 2008 11


Clearly Visual Basic: Programming with Visual Basic 2008 12
Clearly Visual Basic: Programming with Visual Basic 2008 13
Clearly Visual Basic: Programming with Visual Basic 2008 14
Clearly Visual Basic: Programming with Visual Basic 2008 15
Step 3 – Desk-Check the Algorithm
• Desk-checking (hand-tracing)
– Programmer reviews algorithm while seated at his or
her desk
• Valid data
– Data that algorithm is expecting user to enter
• Invalid data
– Data that algorithm is not expecting user to enter

Clearly Visual Basic: Programming with Visual Basic 2008 16


Clearly Visual Basic: Programming with Visual Basic 2008 17
Summary
• First three steps in the problem-solving process
– Analyze the problem
– Plan the algorithm
– Desk-check the algorithm
• Programmers use tools to organize their thoughts
– Pseudocode
– Flowcharts

Clearly Visual Basic: Programming with Visual Basic 2008 19


Summary (continued)
• Algorithm
– Enter data
– Process data
– Display, print, or store data
• Calculation instructions in an algorithm
– Specify what is to be calculated and how to perform
calculation
• After completing analysis and planning steps
– Programmer desk-checks algorithm

Clearly Visual Basic: Programming with Visual Basic 2008 20

You might also like