In: Computer Science
Respond to the following in a minimum of 175 words:
A co-worker interested in learning more about programming has asked some questions that lead to a discussion about programming logic and data.
Answer the following questions:
*** | Algorithm | Pseudocode | Data flow diagram |
1. | it is a sequence of the instruction which provide a solution of the programs. | It only represents the algorithm of the program in natural language and mathematical notations | it is one type of programming model information system. |
2. | it is written in natural language. | it is an informal way of writing a program | it is a graphically way of representing a program. |
3. | it specifies a programming language syntax. | it is not a program it is programming logic. | it is mapped out the flow of information for any process or system. |
4. | it helps to simplify and understand the problem. | it is used to represent an algorithm | It's easy to understand the flow of data through systems with the right data flow software diagrams. |
Q2.What parts of the computer can store user data?
- there are multiple parts in computer are store user data like for..
** for permanent storage we use
1. Read-Only Memory (ROM)
2. Removable Storage
3. Hard Drive
4. Network Storage
** for a temporary store we use
1. Read-Only Memory (RAM)
2. Physical RAM
3. Virtual RAM
4. Cache
Q3. When designing a program, is it necessary to develop pseudocode and algorithm?
- No. It is not essential to write an algorithm earlier than coding. But if the problem you are fixing wishes some work and you assume there is some scope of optimization, you try it out writing an algorithm and doing an analysis.
For some complicated work, I do write pseudocode and try to do the analysis. But most of the time it is no longer required.
Q4. What are the four basic concepts of object-oriented programming?
This four basic concepts of object-oriented programming.
Q5. What are some of the main advantages and disadvantages of object-oriented programming?
Advantages | Disadvantages |
1. in oop we can reuse a code | 1. oop need proper planning and proper designing for programming. |
2. oop is easy to understand | 2. oop program designing is tricky and difficult. |
3. oop support a user define types | 3. in oop programmer must have a programming skill, designing skill and thinking skill. |
4. it is easy to test and maintain | 4. relation among classes become artificial some times. |