Professional Documents
Culture Documents
PC Assignment1
PC Assignment1
PC Assignment1
Q1. What do you mean by Algorithm? What are the different types of algorithm used? What are
the properties of good algorithm? Write an algorithm to display the sum of the following
series: 1+4+9+16+25+........ upto n terms.
Q2. Distinguish between testing and debugging
Q3. a) Write an algorithm and make a flowchart to display the Factorial of a number.
b) Write a program to accept a number and check whether it is a Perfect Number or not.
Q4. Write an algorithm and make a flowchart to calculate the income tax as per the following
table:
Q5. What is a Programming Error? Explain any two types of such errors while writing a program.
Write reasons in support of your answer.
Q6. Write a program in C to print the following patterns:
a) For n=4 b) For n=4
1 *
12 **
123 ***
1234 ****