
Muhammad Ali Jinnah University, Islamabad Campus
Computer Programming (CS1121)
Assignment 4
Instructor: Quratulain Siddiqui
Submission Date: 20thth March 2012
Note: Read and analyze the following problem statement(s), extract information for
designing the solution. Explain your proposed solution step by step. Also write
minimum three possible interpretation of given statements. Your submission files must
be in a folder and named by your Registration No. e.g. EE113123-student name
PART 1
1. Write a program that displays Multiplication table of any given input.
2. Write a program that asks a number from the user and print that many stars in a line.
(print five lines)
3. Write a program for converting number of hours to seconds
PART- II
1. Algorithm is a finite step by steps procedure written to perform some
calculation or manipulations. Your task is to write an algorithm for
following equations
a. (A+B-D)*A
b. (A*D)-B+C
c. ((A+B-D)*A)+((A*D)-(B+C))