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

Study the flowchart below and answer the questions that follow: (a) Write a high level language program for the above flowchart (b) List the outputs of the...

      

Study the flowchart below and answer the questions that follow:
fig17562019135.png
(a) Write a high level language program for the above flowchart
(b) List the outputs of the flowchart above
(c) Modify the flowcharts so that it adds up all its outputs and displays the sum obtained

  

Answers


Kavungya
a)Program ABC;
Uses WinCRT;
VAR
A, B C COUNT: INTEGER;
BEGIN
A: 0
B=1
REPEAT
Writeln (B)
COUNT: = COUNT + 1;
C: = A+B;
A: = B
B: = C;

UNTIL COUNT = 10

END

OR
Program ABC (input, output);
USES Win CRT;
VAR
A, B, C, COUNT: INTEGER;
BEGIN
A: =0;
B: = 1
FOR COUNT: 0 TO 10 DO
Begin
Writeln (B);
C: A + B
A: = B;
B: = C’

End;

END

b)1,1,2,3,5,8,13,21,34,55 (any ten integers)

c)fig18562019138.png
Kavungya answered the question on June 5, 2019 at 10:39


Next: A computer specification has the following details: Pentium II 1.44 MB floppy disk drive 20 GB hard disk Full multimedia 17” SVGA monitor Pre installed operating system Pre- installed office suite (a) What...
Previous: Name two features of a database package.

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


Learn High School English on YouTube

Related Questions