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

Assignment 2

The document outlines an assignment for a programming fundamentals course requiring students to design algorithms and flowcharts to solve 10 problems, such as printing natural numbers from 1-10, odd numbers from 1-10, even numbers from 1-10, and calculating averages, factorials, and sums of numbers. Students must submit their solutions by a deadline and plagiarism is not permitted.

Uploaded by

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

Assignment 2

The document outlines an assignment for a programming fundamentals course requiring students to design algorithms and flowcharts to solve 10 problems, such as printing natural numbers from 1-10, odd numbers from 1-10, even numbers from 1-10, and calculating averages, factorials, and sums of numbers. Students must submit their solutions by a deadline and plagiarism is not permitted.

Uploaded by

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

Pseudo code & Flowchart

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

Faculty of Computer Science and Information


Technology

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 #8: Calculate and print the average of an unknown number of


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.

____________________________________________________________________

You might also like