Computer File: Name: Naman Sharma Class: XII-D Roll No. 20
The document contains the details of a student project file including the student's name, class, roll number, and certificate. It also includes acknowledgements from the student thanking teachers, parents, and friends for their support and guidance. The remainder of the document contains outputs from various Python programs and functions written by the student as part of their practical file.
Computer File: Name: Naman Sharma Class: XII-D Roll No. 20
The document contains the details of a student project file including the student's name, class, roll number, and certificate. It also includes acknowledgements from the student thanking teachers, parents, and friends for their support and guidance. The remainder of the document contains outputs from various Python programs and functions written by the student as part of their practical file.
of class XII-D, DLF Public School, Rajender Nagar, has completed the practicals during the academic year 2021-22, towards partial fulfillment of credit for the Computer Science Practical File, under the supervision of Ms. Ansara Banu ACKNOWLEDGEMENT
It is my privilege to express my most sincere
regards to all who directly or indirectly helped me to complete my project work. I, hereby acknowledge my heartiest gratitude to my Principal Ms. Seema Jerath for her consistent inspiration and to my Computer Science teacher Ms. Ansara Banu for her valuable inputs & encouragement that led me all the way to accomplish this project. I take this opportunity to thank all my teachers, parents and friends, who have helped me with their valuable suggestions, support & guidance that have been very helpful in various phases of the completion of the project. Output Write a function to calculate volume of a box with appropriate default values for its parameters. Your function should have the following input parameters: • Length of box • Width of box • Height of box Write a program in Python using function to read the content from the file and display those words which are having the length of exactly 4 characters Output Read a text file line by line and display each word separated by a# Output Read a text file and display the number of vowels/consonants /uppercase/lowercase characters in the file. 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 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 Create a binary file with roll number, name and marks. Input a roll number and update the marks Output Write a random number generator that generates random numbers between 1 and 6 Output Create a CSV file by entering user-id and password, read and search the password for given userid. Output A binary file “Book.dat” has structure [BookNo, Book_Name, Author, Price]. i. Write a user defined function CreateFile() to input data for a record and add to Book.dat . ii. Write a function CountRec(Author) in Python which accepts the Author name as parameter and count and return number of books by the given Author are stored in the binary file “Book.dat” Output A binary file “STUDENT.DAT” has structure (admission_number, Name, Percentage). Write a function countrec() in Python that would read contents of the file “STUDENT.DAT” and display the details of those students whose percentage is above 75. Also display number of students scoring above 75% Output Write a program to read following details of sports' performance of your school(sport, competitions, prizes won, month, year) and store into a csv file delimited with tab character. Output Write a function in Python to print those words which contains letter ‘S’ or ‘s’ anywhere in the word in text file “STORY.txt”. If the “STORY.txt” contents are as follows: An Old Man is happy today, he doesn’t Complain about anything, smiles, and even His face is freshened up. The output of the function should be: is doesn’t smiles His is freshened Output Write a function WordCount() in Python to read a text file “Mydiary.txt” and display number of words present in each line. Example: If the file content is as follows: Updated information As simplified by official websites. The function should display the output as: Line No 1 : Words=2 Line No 2 : Wo rds=5 Output Write a python program to take the values of n number of Names, Classes and Roll_nos and store them in a nested list. Then store that file in a csv file