Coverpage of Practical File
Coverpage of Practical File
External Examiner
RAS AL KHAIMAH
3 Remove all the lines that contain the character 'a' in a file and write
it to another file.
4 Create a binary file with name and roll number. Search for a given
roll number and display the name, if not found display appropriate
message.
5 Create a binary file with roll number, name and marks. Input a roll
number and update the marks
8 Create a CSV file by entering user-id and password, read and search
the password for given user-id.
14 Write a python script to take input for a number and print its table
16 Write a python script to take input for a number calculate and print
its square and cube?
18 Write a python script to take input for 3 numbers, check and print
the largest number?
19 Write a python script to take input for 2 numbers calculate and print
their sum, product and difference
OUTPUT:
3. Remove all the lines that contain the character 'a' in a file
and write it to another file.
OUTPUT:
4. Create a binary file with name and roll number. Search for a
given roll number and display the name, if not found display
appropriate message.
OUTPUT:
5. Create a binary file with roll number, name and marks. Input
a roll number and update the marks.
OUTPUT:
6. Write a random number generator that generates random
numbers between 1 and 6 (simulates a dice)
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
14. Write a python script to take input for a number and print its
table
OUTPUT:
OUTPUT:
OUTPUT:
18. Write a python script to take input for 3 numbers, check and
print the largest number
OUTPUT:
OUTPUT:
OUTPUT: