Você está na página 1de 1

Due Date: 28th, Oct.

2013

PMAS Arid Agriculture University Rawalpindi


University Institute of Information Technology
Assignment No. 1

Important Note:
Assignments will be submitted on time. You will have to submit the assignment in very next class . However, 20% marks will be deducted for every passing day after the due date. If two days passed the assignment should marked zero. Copying/Cheating whole or part of the assignment from anywhere without proper credit/references will not be tolerated. Whether you have copied or your work has been copied by someone else, you will get zero marks in that assignment.

1. Write an algorithm to find average of any 5 numbers. Also draw its flow chart. 2. Write an algorithm to calculate the factorial of a number. Also draw its flow chart. 3. Write an algorithm that accept age of a student in years and compute it in months. Also draw its flow chart. 4. Write an algorithm that take five values from user and perform the arithmetic operations by using all arithmetic operators. Also print the result on screen. Also draw its flow chart. 5. Write an algorithm that input a number from a keyboard and then print the message It is an Odd number if it is an odd number. Else print a message it is an Even number. Draw a flow chart for a problem

Você também pode gostar