Get premium membership and access questions with answers, video lessons as well as revision papers.

The following flowchart can be used to list the odd numbers between 0 and 100 (a) Write a program segment for the flowchart using a high level...

      

The following flowchart can be used to list the odd numbers between 0 and
100
fig1825620191132.png
(a) Write a program segment for the flowchart using a high level language
(b) What would be the output from the flowchart if the statement in the decision
box is changed to:
(c) Modify the flowchart so that it prints only the sum of the odd numbers
between o and 100

  

Answers


Kavungya
a) Program list
Var
Odd: integer
Begin
Odd; = 1,
Repeat
Write (odd);
Odd: odd + 2
Until odd>99;
Readln
End.

b) i. odd = 100 program will run continuously without stopping
ii. Odd <100- only 1 will be displayed
iii. Odd>100 – 1- 99 will be displayed

c) fig1925620191134.png
Kavungya answered the question on June 25, 2019 at 08:35


Next: Distinguish between office organisation and office practice
Previous: State and explain two precautions that be taken to help recover data lost through accidental erasure

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions