Assignment 2

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

School of Engineering & Technology

Department: SOET Session:


Programme: BCA(AI&DS) Semester: 2nd
Course Code: ENCA102 Number of students:
Course Name: Fundamentals of Object- Faculty:
Oriented Programming using C++

Assignment Number:2
Assignment Type: Quiz/Seminar/Viva/Mini project/Field
project/Debate/GD/Group task etc

COs Assignment Details Marks


CO1 Using for loop: 10

6) Write a program to find factorial of a number using for loop.(using


recursion and without recursion)

7) Create a program to create multiplication table of a number .

8) Write a program to print fibonacci series using for loop.

9) Write a program to find hcf of 2 numbers.

10) Write a program to determine if the number is odd or even using for
loop.

11) write a program to find an array.

12) write a program to find max and min element in an array.

13)wirte a program for quadratic number(3 no.root).

14) Write a program to find greatest among three number using loops.

15)Write a program to find the sum of all rows in a given matrix.

16) Write a program to find if a given matrix is a diagonal matrix

17)Write a program to make the following pattern.

a) 1

12

123

Faculty Signature: Dr.Sakshi Kathuria Approved by:

Date:9.1.2024 Date:
1234

and

18)(following previous question) with any special character

19)Write a program to add 2 same order matrix.

20)Write a program to update elements in array.

21)Write a program to concatenate a strings.

22)Write a program to find the size of string.

23)Write a Program to check if the multi dimensional array is a diagonal


matrix.

24)Write a program to use strcat ( )

25)Write a program to use stcpy( )

26)Write a program to find prime number

Using while loop:

27) Write a program to find factorial of a number using while loop. .(using
recursion and without recursion)

28) Create a program to create multiplication table of a number using while


loop.

29) Write a program to print fibonacci series using while loop.

30) Write a program for GCD(greatest common divisor).

31) write a program to swap two numbers.(without loops).

32) Write a program to determine if the number is odd or even using while
loop.

33)Write a program to find prime number

Using do statement:

34) Write a Program to find average of 1st n numbers .

35) Write a program to find factorial of a number using do statement. .

Faculty Signature: Dr.Sakshi Kathuria Approved by:

Date:9.1.2024 Date:
(using recursion and without recursion)

36) Write a program to print fibonacci series using do statement.

Faculty Signature: Dr.Sakshi Kathuria Approved by:

Date:9.1.2024 Date:

You might also like