Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
456 views

Algorithm Questions

This document contains 13 problems asking to write algorithms and draw flowcharts. The problems involve tasks such as printing squares of numbers, sums of numbers, numbers divisible by a given number, prime numbers between ranges, counting by steps, arranging values in order, finding products and factorials, and counting vowels. Test cases are provided for ranges of numbers, steps, and specific numbers.
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
456 views

Algorithm Questions

This document contains 13 problems asking to write algorithms and draw flowcharts. The problems involve tasks such as printing squares of numbers, sums of numbers, numbers divisible by a given number, prime numbers between ranges, counting by steps, arranging values in order, finding products and factorials, and counting vowels. Test cases are provided for ranges of numbers, steps, and specific numbers.
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 5

Algorithm and Flowchart

Questions
Group 20,21,19,9

Prob. 1. Write an algorithm and draw a


flowchart to print the square of all numbers from
LOW to HIGH. Test with LOW=1 and HIGH=10.

Prob. 2. Write an algorithm and draw a


flowchart to print the SUM of numbers from LOW
to HIGH. Test with LOW=3 and HIGH=9.

Prob. 3. Write an algorithm and draw a


flowchart to print the SUM of numbers from LOW
to HIGH. Test with LOW=3 and HIGH=9.

Prob. 4. Write an algorithm and draw a


flowchart to print all numbers between LOW and
HIGH that are divisible by NUMBER.

Prob. 5. Write an algorithm and draw a


flowchart to print all the prime numbers between
LOW and HIGH. Test with LOW=1 and HIGH=100.

Prob. 6. Write an algorithm and draw a flowchart


to count and print all numbers from LOW to HIGH
by steps of STEP. Test with LOW=0 and
HIGH=100.

Prob. 7. Write an algorithm and draw a flowchart


to count and print all numbers from HIGH to LOW
by steps of STEP. Test with HIGH=100 and
LOW=0.

Prob. 8. Write an algorithm and draw a flowchart


to print the multiplication table for 6's. i.e.
---- 1 6 = 6
---- 2 6 = 12

---- 12 6 = 72

Prob. 9.
Write an algorithm and
draw a flowchart to print the complete
multiplication table for 1's. through 12's.

---- 1 1 = 1, 1 2 = 2,
1 12 = 12
---- 2 1 = 2, 2 2 = 4,
2 12 = 24

---- 12 1 = 12, 12 2 = 24,


12 12 = 144

Prob. 10. Write an algorithm and draw a


flowchart to arrange N values read from the
input in ascending order.
Prob. 11. Write an algorithm and draw a
flowchart that will find and print the product of
3 numbers.


Prob. 12. Write an algorithm and draw a
flowchart that will find and print
The factorial of NUMBER is FACTORIAL.
Test the flowchart for NUMBER=5.
Prob. 13. Write an algorithm and draw a
flowchart that will find and print the
number of vowels in a given set of
characters and print there number of
occurrences.

You might also like