1. Draw a structured flowchart describing the steps you would take to cook popco
ID: 3546667 • Letter: 1
Question
1. Draw a structured flowchart describing the steps you would take to cook popcorn in a microwave oven. Include at least one decision.
2. Create the pseudocode to go along with the flowchart created in question above.
3. Describe the features of unstructured
Draw a structured flowchart describing the steps you would take to cook popcorn in a microwave oven. Include at least one decision. Create the pseudocode to go along with the flowchart created in question above. Describe the features of unstructured 'spaghetti code' and why it is important as a programmer to avoid this method of writing code. Identify and describe the three basic structures. Explain in detail why pseudocode is an important part of software development. Describe the difference between variables and constants. Explain AND OR logic. Explain the advantages of modularizing your programs. Explain how an array occupies computer memory. Describe the advantages of Object-Oriented programming Detail the advantages of looping. Explain event driven programmingExplanation / Answer
1. Flow Chart
No
Yes
No
Yes
No
Yes
2. Pseudo code
First Read the instructions on the popcorn bag that must be microwaveable.
Place popcorn bag on a dish such that the bag is oriented properly upward ( this
side down )
Place dish with popcorn into microwave oven (open microwave oven door first )
Next, select the popcorn cooking mode and press the start button that start rotating
the plate.
When First time elapsed, check whether popcorn has prepared or not.
If prepared, carefully take out the hot popcorn.
Else, place it again in the place
3. Features of spaghetti code: Spaghetti code is a type of bad code that has tangled and
complicated. It generally arises when one is heavily making use of GOTO statements,
threads, exceptions or any other kind of unstructured branching constructs.
Programmer should not write this kind of code as this code is impossible to fix without
causing modifications in functionality.
4. Three basic kinds of structures are sequence control structures, selection control structure
and repetition control structure.
Sequence control structure comprises of series of statements that follow one another.
Selection control structure involves selection of multiple paths, direction depending upon
result of test.
Repetition control structure involves executing sequence of same statements.
5. Pseudocode is simple text and easy to understand. It makes easy for the developers to
understand their roles in development of software and also removes most of the
distractions that can derail the early process of project. It provides programmers with the
whole picture instead of providing the specific picture that make up that picture which
helps them easily understand the problem.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.