0% found this document useful (0 votes)
4 views

P_FILE 1

The document outlines a series of programming tasks, including calculating NCR using factorials, performing various number operations, and managing student marks through user-defined functions. It also includes menu-driven programs for string and dictionary operations, as well as a random number generator simulating a dice. Each program is detailed with specific functionalities and operations to be implemented.

Uploaded by

JEE Aspirant
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

P_FILE 1

The document outlines a series of programming tasks, including calculating NCR using factorials, performing various number operations, and managing student marks through user-defined functions. It also includes menu-driven programs for string and dictionary operations, as well as a random number generator simulating a dice. Each program is detailed with specific functionalities and operations to be implemented.

Uploaded by

JEE Aspirant
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Program File

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.

6. Write a menu driven program to perform any 15


six built in functions or operations on
Dictionary.
7. Write a random number generator that 17
generate random numbers between 1 to 6
(Simulates a dice).

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

You might also like