Microlink Technology College Department of Computer Science Csse-133 Programming Fundamentals I Worksheet 1 (Algorithm Design)
Microlink Technology College Department of Computer Science Csse-133 Programming Fundamentals I Worksheet 1 (Algorithm Design)
1. Design an algorithm and the corresponding flowchart for finding the sum of the
numbers 2, 4, 6, 8, …, n
2. Using psedocode, write an algorithm to read 100 numbers and then display the
sum.
3. Using flowcharts, write an algorithm to read two numbers then display the largest.
4. Using psedocode, write an algorithm to read two numbers then display the smallest
5. Using flowcharts, write an algorithm to read three numbers then display the
largest.
6. Using psedocode, write an algorithm to read 100 numbers then display the largest.
7. Draw a flowchart for a program that will input a list of N test scores (test score >=
0) and finds the highest test score and finds the number of the students whose score
is 50 or above
8. Draw a flowchart for a program which reads (inputs) a positive integer N and
calculates the sum:
1. Design an algorithm and the corresponding flowchart for finding the sum of the
numbers 2, 4, 6, 8, …, n
2. Using psedocode, write an algorithm to read 100 numbers and then display the
sum.
3. Using flowcharts, write an algorithm to read two numbers then display the largest.
4. Using psedocode, write an algorithm to read two numbers then display the smallest
5. Using flowcharts, write an algorithm to read three numbers then display the
largest.
6. Using psedocode, write an algorithm to read 100 numbers then display the largest.
7. Draw a flowchart for a program that will input a list of N test scores (test score >=
0) and finds the highest test score and finds the number of the students whose score
is 50 or above
8. Draw a flowchart for a program which reads (inputs) a positive integer N and
calculates the sum: