KnowledgeBoat Logo

Computer Applications

As a homework assignment, your teacher has given a flowchart (shown below) to find and display the square and cube of a positive number. The execution must be terminated, if a negative number is entered.

As a homework assignment, your teacher has given a flowchart (shown below) to find and display the square and cube of a positive number. The execution must be terminated, if a negative number is entered. The above flowchart has some errors which are indicated with 1, 2, 3 and 4. Algorithms and Flowcharts, APC Understanding Computer Studies Solutions ICSE Class 8.

The above flowchart has some errors which are indicated with (1), (2), (3) and (4). Answer the following questions to give the correct result.

(a) What will be the correct representation of the box in (1)?

(b) What will be the correct logic for the variable N in (2)?

(c) Out of the flow lines (3) and (4), which one is undesirable?

(d) When all the corrections are made, what will be the output, if the input value is taken as 12?

Algo & Flowcharts

26 Likes

Answer

(a) The correct representation of the box in (1) is a parallelogram or input/output box.

(b) The logic for the variable N in (2) will be - If N>0?

(c) Flow line (4) is undesirable.

(d) The output will be 144, 1728.

The corrected flowchart is shown below:

As a homework assignment, your teacher has given a flowchart (shown below) to find and display the square and cube of a positive number. The execution must be terminated, if a negative number is entered. The above flowchart has some errors which are indicated with 1, 2, 3 and 4. Algorithms and Flowcharts, APC Understanding Computer Studies Solutions ICSE Class 8.

Answered By

13 Likes


Related Questions