You are on page 1of 2

PRG1 WAP to create a dictionary to store country names and their capitals for

10 countries. Take the choice


[17.4.21] from the user. If choice is 1= user enters the country name and gets
corresponding capital.
If choice is 2= user aasked to enter capital and program will display
the names of the country.
If country/capital name does not exist in the dictionary thenn display
an error message.

PRG2 WAP to take 3 different functions to do the following oprations based on


the given menu.
[28.4.21] I.Area of circle ;II.Ar. of rectangle ;III.Ar. of triangle.(Using
detailed argument)

PRG3 WAP using function to clculate the factorial of 5 different numbers


using return statement.
[28.4.21]
PRG4 WAP to implement calculator functions taking a menu based choice.
[28.4.21]
PRG5 WAP to read a number and find its octal equivalent:
[5.6.21] I.Using buit in function ;II. Without using buit in function

PRG6 Define a module with user defined function.


[5.6.21] I. binary()- it will convert the numbers to its binary eqiuvalent.
II.fact() - it will find the factorial of the number passed as
arguments.
Take necessary variable and constants for defining the module.

PRG7 Create a package having the following structure: GEOMETRY


[9.6.21] _____/\_______
| |
AREA VOLUME

_____/\____ ____/\_____
| | |
|
RECTANGLE() TRIANGLE() CUBE()
CUBOID()

PRG8 Create a package having the following structure:


[9.6.21] CONVERSION
__________/\________
| |
Length conversion.py Mass conversion.py
|-> mile to km() |-> kg to tonne()
|-> km to mile() |-> tonne to kg()
|->feet to inches() |-> kg to pound()
|->inches to feet() |-> pound to kg()

PRG9 WAP to create a file story.txt then read and store all the vowels in a
new file vowels.txt
[2.7.21] and all the consonants in the file consonants.txt
PRG10 WAP to create a student.txt file for 5 different students with roll
numbers, names n total marks as items.
[2.7.21] Read the file and add 2 more records in it. Then retrieve all the
records and display those which have scored above 350.

PRG11 WAP to create a file sports.dat containing information related to sports


i.e events and the participants.
[2.7.21] Write function that would read contents from the file sports.dat and
create another file named Athletic.dat
copying only those records from sports.dat where the events name is
"Athletics".

PRG12 WAP to create a text file source.txt. Copy content of source.txt onto
target.txt
[5.7.21] bearing the lines starting with the characters '@' using as a function.

PRG13 WAP to find the factorial of a number usiing recursive functions.


[8.7.21]
PRG14 WAP to do binary search using recursion.
[10.7.21]
PRG15 WAP to calculate GCD/HCF of two numbers using recursive technique.
[30.7.21]
PRG16 WAP to create a binary file student.dat with roll number,name and marks
for any number of records til the user wants.
Add few records to the above created file. Read the records of the file
and display those on the screen.
[16.7.21]
PRG17 WAP to create a student file and store some recordds with roll number,
name and marks.
If the roll no. is matching with the user's choice, then display the
record on the screen.
If the roll no. is not found in the file then display an invalid
message.
[20.7.21]
PRG18 WAP to crreate a binary file student.dat to update the marks of the
students who have scored above 81 marks
[22.7.21] with bonus 5 marks.

PRG19 WAP to create a CSV file- employee.csv with employee no., name n salary.
Read the employee information
[24.7.21] if salary is in between 50000-60000. Display the file by suppressing
EOL(end of line) translation.
PRG20 WAP to enter the following records in a binary file item no=interger;
price= float; item name=string; qty=integer.
[31.7.21] No. of record to be entered should be accepted from the user and then
read and display the records in the given format.
Item no.:-----; Qty:-------; Price:------; Amount:------; Item name:----

PRG21
PRG22
PRG23
PRG24
PRG25

You might also like