Friday, August 21, 2015

14. Computer Programming with flowcharting Technique (page 14)


Problem 9
You are asked to makes program to print article NEW YORK 10 times and every article is given massage number 1 up to 10

Solution
To print 10 times must be given iteration constrain 10 times

Logic:
Does iteration 10 times to print sequential number and word NEW YORK

Programming stages and steps:
Determines string variable to say NEW YORK
Process looping with iteration 10 times for counter and word NEW YORK

Description
Counter is calculation at iteration process

PROG009


FIG.16

Output: 1NEW YORK2NEW YORK3NEW YORK and so on

Additional description:
If line number 60 changed by PRINT X ; " " ; A$
Output:
1 NEW YORK
2 NEW YORK
3 NEW YORK and so on

Followers

Blog Archive