P_FILE 1
P_FILE 1
3963 (30)
1|Page
2|Page
3|Page
Index
No. Name of Program Page Sign of
no. the
Teache
r
1. Program to calculate the NCR using 5
factorial- user defined function.
3. Menu driven program to perform following 6
Number operations using functions:
1. Prime Number checking
2. Perfect Number checking
3. Sum of digits of a number
4. Reverse of a number
5. Armstrong Number checking
6. Palindrome Number checking
4. W.A.P. to perform the following operations in a 7
list containing n students marks using UDF
1. input student marks
2. Display all student marks along with class
average, highest and lowest and also display
their position
3. Display all those marks which are above class
average and display the no of students above
average and display their average
4. Add a new student marks to list
5. Update marks as per the req condition
6. Insert the marks at the given position
7. Remove (all forms)- using list methods.
5. Write a menu driven program to perform any 8 12
built in functions or operations on strings.
4|Page
Program -1 Program to calculate the NCR using factorial- user defined function.
Code:
5|Page
Program 2: Menu driven Program to perform the following operations using user’s
defined functions
1. Valid()- A function to check whether the given date is valid or not and return ‘Y’ or
‘N’ accordingly.
2. Format1()- A function to display the given date as dd-mm-yy format.
3. Format2()A function to display the given date as dd-mnthname-yy format
6|Page
7|Page
8|Page
9|Page
10 | P a g e
11 | P a g e
12 | P a g e
13 | P a g e
14 | P a g e
15 | P a g e
16 | P a g e
17 | P a g e