0% found this document useful (0 votes)
32 views3 pages

Iii. Directions For Filling Out A Registration Form.: 1.1 Self-Review Questions

An algorithm is a set of steps to solve a problem in a specific order. Pseudocode uses plain English to describe the steps, while a flowchart uses graphic symbols. The document lists directions for baking a cake, nutrient info for cereal, and instructions for a registration form as examples of algorithms, while mathematical operations are also algorithms. It provides a flowchart showing the steps to print smaller integers from two user inputs in a loop. Finally, it shows a flowchart to calculate fall time from height and requests the corresponding pseudocode, which is provided.

Uploaded by

Azizan Azmi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views3 pages

Iii. Directions For Filling Out A Registration Form.: 1.1 Self-Review Questions

An algorithm is a set of steps to solve a problem in a specific order. Pseudocode uses plain English to describe the steps, while a flowchart uses graphic symbols. The document lists directions for baking a cake, nutrient info for cereal, and instructions for a registration form as examples of algorithms, while mathematical operations are also algorithms. It provides a flowchart showing the steps to print smaller integers from two user inputs in a loop. Finally, it shows a flowchart to calculate fall time from height and requests the corresponding pseudocode, which is provided.

Uploaded by

Azizan Azmi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

1 Self-Review Questions
1. Answer the questions below. a) What is an algorithm? Algorithm is a procedure for solving a problem in terms of the actions to be executed and the order in which these actions are to be executed. b) What is the difference between pseudocode and flowchart? __________________________________________________________________ c) Which of the following are algorithms? i. ii. Directions on how to bake a chocolate cake. List of nutrients in a cereal box.

iii. Directions for filling out a registration form.


iv. Rules for multiplying one number by another.

2. Draw a flowchart for pseudo code below:


1. 2. 3.
4. 5.

Start Read 2 integers, A, B While A > B Repeat step 2 Print B Stop

Start
Read 2 intergers A and B

While A>B

Print B

Stop

3. The flowchart below represent a program that will calculate the time takes for a ball to hit the ground after it has been dropped from a tower. The towers height is to be read from the user. Write a pseudocode for the flowchart. (You may used C++ sqrt() library function)
START

INPUT HEIGHT, h

TIME = sqrt(2 * height / 32.2)

PRINT TIME

STOP

Presuecode: 1. 2. 3. 4. 5. Start Read Input height,H Calculate Time= sgrt(2*height/32.2) Print Time Stop

You might also like