0% found this document useful (0 votes)
164 views

Microlink Technology College Department of Computer Science Csse-133 Programming Fundamentals I Worksheet 1 (Algorithm Design)

This document contains instructions for a computer science worksheet on algorithm design. It provides 12 problems involving writing algorithms using pseudocode or flowcharts to perform tasks such as calculating sums of numbers, finding largest/smallest values, displaying odd/even numbers between ranges, and calculating the next date. The problems cover topics like reading input, performing calculations, and displaying output.

Uploaded by

m
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views

Microlink Technology College Department of Computer Science Csse-133 Programming Fundamentals I Worksheet 1 (Algorithm Design)

This document contains instructions for a computer science worksheet on algorithm design. It provides 12 problems involving writing algorithms using pseudocode or flowcharts to perform tasks such as calculating sums of numbers, finding largest/smallest values, displaying odd/even numbers between ranges, and calculating the next date. The problems cover topics like reading input, performing calculations, and displaying output.

Uploaded by

m
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

MicroLink Information 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:

9. Write a psedocode to display all odd numbers between 0 and 1000.


10.Write a flowchart to display the sum of all even numbers between 0 and 100
11.Draw a flowchart to display all prime number between 1 and 100.
12.Write a flow chart that accepts date in day, month, year format and display the next
day.
Example: Input: 23/06/2015
Output: 24/06/2015
MicroLink Information 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:

9. Write a psedocode to display all odd numbers between 0 and 1000.


10.Write a flowchart to display the sum of all even numbers between 0 and 100
11.Draw a flowchart to display all prime number between 1 and 100.
12.Write a flow chart that accepts date in day, month, year format and display the next
day.
Example: Input: 23/06/2015
Output: 24/06/2015

You might also like