Sitemap
Kaningstan

Kaningstan

Basic problem solving

1 min readAug 29, 2023

--

  • Basic steps for desining computer program
  • Algorithm
  • flow chart

Problem solving stages

  • Problem Definition — define the main problem
  • problem analysis — Determine the input output arithmetic and logic operations
  • Design solution — identify the required steps

Problem Definition

  • Write the program to find the sum of two integer
  • Write the program to find the Average of three number
  • Write the program to find the Area of a circle

Problem analysis

  • Write the program to find the sum of two number

inputs : first nuber,second number

Get Kaningstan’s stories in your inbox

Join Medium for free to get updates from this writer.

Process:

sum= firstnumber + second numberseuoutputs:

sum

Pseudocode

  • Statements are written in simple English without regard to the final programming language.
  • The pseudo-code is the program-like statements written for human readers, not for computers. Thus, the pseudo-code should be readable by anyone who has done a little programming.

pseudocode components

  1. Variables [x]
  2. Input [ Read n]

3. Assignment [sum=0]

4. Selection [if -else]

5. Repetition [while loop]

6. Output [print sum]

--

--