Question

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.

research on the following:

     Algorithms

     Flowcharts

     Pseudocodes

Based on your research and readings, answer the following questions:

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?

Solutions

Expert Solution

Algorithm:       step by step problem solving procedure .

Algorithm can be represented in two ways.

Flowchart:    pictorial representation of algorithm using geometrical diagrams like rectangle, circle, polygon etc.

Pseudocode: it is one way of representation of algorithm using combination of programming statements and English phrases. Pseudocode has specific notations.

  1. Program need only one among algorithm, flowchart, pseudocode. Purpose of all is same. All of them represent same procedure to solve a problem. Basic difference is representation of them is different but problem solving logic is same.

Algorithm for linear search:

  1. Declare   and read array
  2. Read search element
  3. Compare search element with each element of array using looping condition.
  4. If any element matches print element is found.
  5. If not then print element is not found.

Pseudocode for linear search:

FUNCTION linearSearch(array, searchElement):

     FOR index FROM 0 -> length(array):

       IF array[index] == searchElement THEN

           RETURN index

       ENDIF

       ENDLOOP

           RETURN -1

END FUNCTION

2)

        If   I want to choose two of them from algorithm, flowchart, pseudocode   I will choose algorithm, pseudocode . I will eliminate flowchart .Creating flowchart for some problems very complex. Flow chart uses different symbols, arrows to show sequence of instructions. It will consume lot of time and modifications are difficult.

Where as we can write algorithm, pseudocode easily compared to flowchart for complex problems.

3)

We need additional data types required to store some types of data. Some types of data needed special mechanism to maintain them.

If we want store details of employee under one variable which is not possible using primitive types. Because employee has many fields like name, salary, date of birth etc.

To store elements of different data types we use structures, unions .

Struct emp

{

Char string[];

Int age;

Float salary;

}e3;

   Struct   emp    e1,e2;

4)  

Documentation done on various phases of software development before product is delivered to a customer.

Documentation done on requirement analysis, design, testing, deployment phases.

At the deployment phase complete working of product is documented for user understanding process.


Related Solutions

Do you think every program needs all three (algorithms, flowcharts, and pseudocodes) of them? Why or...
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...
Do you think Statistics can be used to solve societal problem? Justify your answer with a...
Do you think Statistics can be used to solve societal problem? Justify your answer with a practical example. Kindly support your answer with References
Do you think Statistics can be used to solve societal problem? Justify your answer with a...
Do you think Statistics can be used to solve societal problem? Justify your answer with a practical example. Please note that the answer should not be less than 2 pages and support your answer with References
Do you think that organizations should have a job description for each job? Justify your answer...
Do you think that organizations should have a job description for each job? Justify your answer why yes/no
Are you a staunch proponent of whistleblowing? Why or why not. Justify your reasoning with examples
Are you a staunch proponent of whistleblowing? Why or why not. Justify your reasoning with examples
Why are Software Defined Networks (SDN) considered an overlay network? Justify your answer with examples of...
Why are Software Defined Networks (SDN) considered an overlay network? Justify your answer with examples of some well-known overlay networks. [5 Marks] 2. Discuss the key challenges in SDN? How will you migrate from a traditional network to an SDN based network? Justify your answer with examples.
Do you think it’s possible for all countries to be developed? Explain your answer
Do you think it’s possible for all countries to be developed? Explain your answer
Why do you think the immune reaction is classified as a positive feedback reaction? Justify that...
Why do you think the immune reaction is classified as a positive feedback reaction? Justify that classification.
Which theory of motivation do you think is the most effective? Defend your answer using examples....
Which theory of motivation do you think is the most effective? Defend your answer using examples. (Write your answer in 150-200 words)
1. Why are Software Defined Networks (SDN) considered an overlay network? Justify your answer with examples...
1. Why are Software Defined Networks (SDN) considered an overlay network? Justify your answer with examples of some well-known overlay networks. [5 Marks] 2. Discuss the key challenges in SDN? How will you migrate from a traditional network to an SDN based network? Justify your answer with examples. [5 Marks]
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT