In: Computer Science
Do you think every program needs all three (algorithms, flowcharts, and pseudocodes) of them? Why or why not? Justify your answer with examples.
If you plan to create any two of them for a program, which one would you eliminate? Why?
You have read about fundamental data types in your book. Are these
data types enough to represent all data or do you think additional
data types are needed? Why or why not? Explain your answer with
examples.
Looking at the phases of program development, in which phase should
the documentation be done? Why?
algoritham:
an alogitham is a set of instructions for solving a problem. when the instructions are followed, it must eventually stop with an answer.
example:
Input: two numbers x and y
Output: the average of x and y
Steps:
1. input x
2. input y
3. sum = x + y
4. average = sum /2
5. output average
___________________________________________________________________________________________
flow chat:
a flowchart is a pictorial representation of an algoritham in which
steps are drawn in the form of different shapes of boxes and the
logical flow is indicated by interconnecting arrows.
example:
___________________________________________________________________________________________
pseudocode:
method of writing algorithms that is independent of programming
language.
example:
Input: two numbers x and y
Output: the average of x and y
Steps:
1. START
2. input x
3. input y
4. sum = x + y
5. average = sum /2
6. output average
7. END
___________________________________________________________________________________________