Question

In: Computer Science

* what are pseudocode and flowcharts and what are they used for? * how to interpret...

* what are pseudocode and flowcharts and what are they used for?

* how to interpret branching and looping logic?

* What is the difference between the two types of identifiers?

* What is the difference between two types of containers?

* what are functions and methods and what are they used for?

* what objects are?

Solutions

Expert Solution

What are pseudocode and flowcharts and what are they used for?

Ans: Flowcharts are written with program flow from the top of a page to the bottom. Each command is placed in a box of the appropriate shape, and arrows are used to direct program flow.

Pseudocode is a method of describing computer algorithms using a combination of natural language and programming language. It is essentially an intermittent step towards the development of the actual code.

How to interpret branching and looping logic?

Ans: Branching statements include mostly break,return,goto and continue and it is condition based eg if statements and switch statements.

looping logic is nothing but a code which is repeatation of a section of code number of times until the condition is fulfilled.

What is the difference between the two types of identifiers?

Ans: There are two diffrent types of identifier Standard identifier and user defined identifiers

Standard identifiers: These identifiers are predefined and are used in special purpose in the source code for example in the c program printf, scanf, int, this these are the standard identifiers.

User defined identifiers: Programmer or user can define their own identifers according to their needs for eg in the c program area and Area are considered as two different identifiers.

What is the difference between two types of containers?

Ans: Two types of containers are single valued container and associative container.

Single-value containers store each object independently. Objects may be accessed directly or with an iterator.

An associative container uses an associative array, map, or dictionary, composed of key-value pairs, such that each key appears at most once in the container. The key is used to find the value, the object, if it is stored in the container. Associative containers are used in programming languages as class templates.

What are functions and methods and what are they used for?

Ans: Method and a function are the same, with various terms. A method is a strategy or capacity in object-oriented programming. A function is a group of reusable code which can be called anyplace in your program. This dispenses with the requirement for composing a similar code again and again

what objects are?

Ans: Object are bundles of variables and related methods. Software objects are modeled after real-world objects in that they too have state and behavior. A software object maintains its state in one or more variables. A variable is an item of data named by an identifier. A software object implements its behavior with methods. A method is a function (subroutine) associated with an object.


Related Solutions

Pseudocode and flowcharts are fiexible tool for early development of software design.
 Pseudocode and flowcharts are fiexible tool for early development of software design. They are used only as a plenning tool, and not the final product. Remember that when you eventually convert your pseudocode or your flowchart to a specific programming language (lke Javal you do not have such flexibility because very specific syntax will be required Please study chapter two and the "flowchart symbols article on the "course document" section before you attempt the following project. Flowchart Design The idea...
Discuss with the class the importance of program design (using pseudocode and/or flowcharts) when designing programs...
Discuss with the class the importance of program design (using pseudocode and/or flowcharts) when designing programs utilizing selection structures.
Define beta, what it measures, how to interpret beta, and how beta is used as part...
Define beta, what it measures, how to interpret beta, and how beta is used as part of the capital asset pricing model. Discuss the advantages and disadvantages to using beta. Please show work
how to interpret confidence intervals and how NOT to interpret them. What are the assumptions to...
how to interpret confidence intervals and how NOT to interpret them. What are the assumptions to justify the use of hypothesis testing? If the null hypothesis is rejected, what can we conclude? If we know that 60% of ASU students like the parking and 50% of the community as a whole likes the parking, and the difference between the sample and population are tested, with the null rejected, what do we conclude? Is the difference significant? Not significant? Are ASU...
Make flowcharts to show the traditional biochemical tests used in a microbiology lab to identify the...
Make flowcharts to show the traditional biochemical tests used in a microbiology lab to identify the following organisms. Start from gram stain used to identify gram negative bacteria. 1. E.coli 2. salmonella spp. 3. yersinia spp. 4. Shigella 5. Klebsiella 6. Citrobacter 7. serratia 8. Providencia 9. proteus 10. pseudomonas aeruginosa 11. acinetobacter 12. alcaligenes 13. chryseobacterium
Define velocity and acceleration. Explain how acceleration can be used to interpret the velocity of an...
Define velocity and acceleration. Explain how acceleration can be used to interpret the velocity of an object. I want the written explanation because I can't read the hand-writing one.
What chemicals is used to reduce the complexity of 3D protein to interpret primary structure?
What chemicals is used to reduce the complexity of 3D protein to interpret primary structure?
What are the differences between data flow diagrams and Flowcharts? What are their roles in IS?...
What are the differences between data flow diagrams and Flowcharts? What are their roles in IS? please can somebody type it out for me because i do not understand pictures
What are the differences between data flow diagrams and Flowcharts?  What are their roles in IS?
What are the differences between data flow diagrams and Flowcharts?  What are their roles in IS?
How Heapify is done (theory, pseudocode, and examples) the examples used Java code please (in your...
How Heapify is done (theory, pseudocode, and examples) the examples used Java code please (in your own words)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT