You are on page 1of 32

ASSIGNMENT -2

SUBMITTED BY

NAME – TIASA PAL


ROLL – BFT/20/554
DEPARTMENT – BFTECH (2020-2024)

SUBMITTED TO
PROF . PRABIN KUMAR ROUT
• PROGRAM TO COUNT THE FREQUENCY OF A LIST ELEMENTS USING A
DICTIONARY
• Consider already created dictionary M that stores roll number and
marks . write a program to input a roll number and delete it from the
dictionary. Display error message if the roll number does not exist in
the dictionary .
• Write a program to create a phone dictionary for all your friends and
print each key value pair in separate lines
• Write a program to read roll numbers and marks of four students and
create a dictionary from it having roll numbers as keys.
• All Questions Answer of For Loop (share your answer like : for loop q1
: answer is option c)
• Program for merge sort
• Program for heap sort
• Program for linear search
• Program for binary search
• Program for bubble sort
• Program for insertion sort
• Program for selection sort
• :Count number of digit of a given number
• 2 : program for SUM of digits
• 3 : program to find the reverse a number
• 4 : program to find the palindrome no
• 5 : program to get the factorial of a given number
• 6 : program to get the prime number
• 7 : program to find the prime factors
• 8: program to get the Fibonacci series
• 9 : program for strong number or not
• 10: program to find the Armstrong number
• 11 : program to find the perfect number between 1 to 1000
• 12: program to get the Floyd's triangle
• 13: Programs for printing pyramid patterns
• 14: program to calculate distance between two points taking
input from the user
• 15: program to display area of rectangle.

You might also like