Programming - Steps in Problem Solving
Programming - Steps in Problem Solving
AND PROGRAM
DESIGN
Define the
problem
Represent
the solution Determine
as the best
pseudocode solution
or flowchart
Step 1:Define the Problem
Should I
take Should I
the walk to
taxi??? school???
Should I
take the
bus???
Step 2:Propose and evaluate solutions
Most
costly
Fastest
(10 Reliable
mins)
Taxi
Cost $100
Takes
(save
fairly $400)
long (25
mins) Problem Statement
We need to get to
school on time 15
Costs
least and
Bicycle using a reliable
mode of Bus mins
transportation
save all while trying to save
the some money.
money
Reliable
Fairly
but can reliable
be tiring
Walk
Takes
longest
Reliable
(45
but most
mins) Costs tiring
least and
saves all
the
money
Step 3: Determine the best solution
When do we want to get there? Ten minutes before the first bell.
Calculate the
product by
multiplying the
three numbers.
Calculate area
Area= Length *
Width
Convert pounds
to kilograms
Kg = lb * 2.2