Problem solving Phase

The problem solving phase consists of five steps:


  1) Define the problem.

  2) Find solution.

  3) Evaluate alternative solution.

  4) Represent the most efficient solution as an algorithm.

  5) Test the algorithm for correctness.




                      Implementation Phase

Implementation phase comprises of only three steps:

  1) Translate the algorithm into a specific programming language.

  2) Execute the program on the computer.

  3) Maintain the program.
Flow chart symbols


   Processing box




  Start and stop sign




Connector




 Input/Output




                Decision box
Defining problem

INPUT


The names of an unspecified number of masqueraders who each have
paid the full cost of their costume and the amount each has paid is to be
inputted.


Processing
The amount he/she has paid for the costume from their section and the
number of masqueraders who have paid for costumes in each section will
be determined.


Output
The number of persons and the section who have paid are to be outputted,
along with a listing of section and the total number of persons registered to
play in each section. In addition, the total amount of money paid in each
section is printed.
Defining diagram


Input     Processing       Output
Algorithm (flowcharting)



              START




  Get/ Read




   Get/Read
I
     If               If Yes




              If No



                      If Yes
 If




              If No




                      If Yes
If
If No

                            If yes
        If




Print




             STOP
Algorithm (pseudo code)


Algorithm

Program sba

  • 1.
    Problem solving Phase Theproblem solving phase consists of five steps: 1) Define the problem. 2) Find solution. 3) Evaluate alternative solution. 4) Represent the most efficient solution as an algorithm. 5) Test the algorithm for correctness. Implementation Phase Implementation phase comprises of only three steps: 1) Translate the algorithm into a specific programming language. 2) Execute the program on the computer. 3) Maintain the program.
  • 2.
    Flow chart symbols Processing box Start and stop sign Connector Input/Output Decision box
  • 3.
    Defining problem INPUT The namesof an unspecified number of masqueraders who each have paid the full cost of their costume and the amount each has paid is to be inputted. Processing The amount he/she has paid for the costume from their section and the number of masqueraders who have paid for costumes in each section will be determined. Output The number of persons and the section who have paid are to be outputted, along with a listing of section and the total number of persons registered to play in each section. In addition, the total amount of money paid in each section is printed.
  • 4.
    Defining diagram Input Processing Output
  • 5.
    Algorithm (flowcharting) START Get/ Read Get/Read
  • 6.
    I If If Yes If No If Yes If If No If Yes If
  • 7.
    If No If yes If Print STOP
  • 8.