Computer Programing ch8
Computer Programing ch8
and Fundamentals
Introduction
Specific sequence
• Problem analysis
• Program design
• Program development
• Program documentation and maintenance
Program design
• The programmer selects the best suited algorithmfor the given task to be
solved
Algorithm
• Start
• Read the three numbers A, B, C
• Compare A and B. If A is greater perform step 4 else perform step 5.
• Compare A and C. If A is greater, Ouput ‘‘A is greatest‘‘ else output
‘‘C is greatest‘‘. Perform step 6
• Compare B and C. If B is greater, Ouput ‘‘B is greatest‘‘ else output
‘‘C is greater‘‘.
• Stop
• Start
• Read the three numbers A, B, C
• Compare A and B. If A is greater, store A in MAX, Else
store B in MAX
• Compare MAX and C. If MAX is greater, output ‘‘MAX is
greatest‘‘ else output ‘‘C is the greatest‘‘
• Stop
Flow chart
Pseudo Code
• Short
• Readable
• Formally styled english
• Used for explaining Algorithms
• Short hand way of describing a program
• To understand the geberal working of a program