Assignment 2
Assignment 2
ASSIGNMENT: 02
IT-104
Programming Fundamentals
M u h a m m a d S h a f i q
s h a f i q @ u o g . e d u . p k
UN IVE RS ITY OF G UJ R AT
1
Page
ASSIGNMENT #:01
____________________________________________________________________
You are required to design the algorithms and flow charts of the
given problems.
Submission Date: 3-December-2012
NOTE:
1. Assignment should be in hard copy format.
2. Plagiarism will not be tolerated.
3. Submission of assignment after the due date, will direct to
exercise marks deduction policy.
____________________________________________________________________
Problem #1: To print the natural number from 1-10.
Problem #2: To print the series of Odd numbers from 1-10.
Problem #3: To print the series of Even number from 1-10
Problem #4: To print the sum of series of natural number from 1-20.
Problem #5: To print the table of 5.
7 x 1 = 7
7 x 2 = 14
7 x 3 = 21
. . .
7 x 10 = 70
Problem #6: To print the factorial of n number.
Problem #7: Calculate and print the average of ten test scores.
Problem #9: Design an algorithm that will display to the screen the
first 20 numbers, with their squares and cubes, as follows:
1 1 1
2 4 8
3 9 27
. . .
Problem #10: Accumulate and the sum of the positive integers n until
this sum becomes greater than or equal to total 100.You are required
to find and display the values of n whose sum is equal to total 100.
____________________________________________________________________