PC Assignment1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Faculty Name: Dr.

Piyush Charan Session: 2020-21

Department of Electronics and Communication Engineering


Faculty of Engineering, Integral University Lucknow
Assignment 1
Programming Concepts (EC208)

Due Date: 22.04.2021

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:

Income Tax Slab Rates for FY 2017-18


Annual Salary Individuals
upto 2,50,000 Nil
Rs. 2,50,000 to 5,00,000 5%
Rs. 5,00,000 to 10,00,000 20%
Above Rs. 10,00,000 30%

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 ****

Q7. What is IDE? What are the features embedded in an IDE?

You might also like